[NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد

[please ignore other one]

Dear gang,

Ok this is embarrassing, but I can't seen to figure this one out. To solve
the current issue I need either

1. a \part, let's define it as \partsuper, that does one thing and ONLY
one thing:

\starttext

\partsuper{Super Part 1}

text page numbers 1, 2, 3, , n

\partsuper{Super Part 2}

text page numbers 1, 2, 3, , n

\stoptext

So after each partsuper, the pagenumber is reset to one. But the partsuper
is not typeset, does not generate anything in the listings, toc, etc etc.
In other words, it's completely invisible in the output, except that the
pagenumbering in reset.

One possibility: In addition to resetting the page no, \partsuper may
create document numbers of the form

\starttext

\partsuper{Super Part 1}

text page my-prefix-1, my-prefix-2, my-prefix-3, ,
my-prefix-n

\partsuper{Super Part 2}

text page numbers my-other-prefix-1, my-other-prefix-2,
my-other-prefix-3, , my-other-prefix-n

\stoptext



2. The other, less sophisticated option: How do I get \setuppagenumbering
to simply just reset the current pagenumber to 1 and start from 1
again?

Again I can do my-prefix for the first range of pagenumbers and
my-other-prefix for the second.

===

Let me explain the big picture. I have two (rather large) structured
documents. I need to

a) compile both at the same time to manage cross-references between each;

b) have each start at page 1. \setuppagenumbering[number=1] does not seem
to work:

===
\starttext
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[state=stop]
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[state=start]
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[number=1]
\dorecurse{28}{\input knuth\par }
\stoptext
===

For cross references I have defined a mirror for each document structure
element. For \chapter in Book One we use \chaptertwo in Book Two etc., so
each book has its own TOC that does not interfere with the other etc.

===

With this in mind, I need your help, gang!

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد

[please ignore other one]

Dear gang,

Ok this is embarrassing, but I can't seen to figure this one out. To solve
the current issue I need either

1. a \part, let's define it as \partsuper, that does one thing and ONLY
one thing:

\starttext

\partsuper{Super Part 1}

text page numbers 1, 2, 3, , n

\partsuper{Super Part 2}

text page numbers 1, 2, 3, , n

\stoptext

So after each partsuper, the pagenumber is reset to one. But the partsuper
is not typeset, does not generate anything in the listings, toc, etc etc.
In other words, it's completely invisible in the output, except that the
pagenumbering in reset.

One possibility: In addition to resetting the page no, \partsuper may
create document numbers of the form

\starttext

\partsuper{Super Part 1}

text page my-prefix-1, my-prefix-2, my-prefix-3, ,
my-prefix-n

\partsuper{Super Part 2}

text page numbers my-other-prefix-1, my-other-prefix-2,
my-other-prefix-3, , my-other-prefix-n

\stoptext



2. The other, less sophisticated option: How do I get \setuppagenumbering
to simply just reset the current pagenumber to 1 and start from 1
again?

Again I can do my-prefix for the first range of pagenumbers and
my-other-prefix for the second.

===

Let me explain the big picture. I have two (rather large) structured
documents. I need to

a) compile both at the same time to manage cross-references between each;

b) have each start at page 1. \setuppagenumbering[number=1] does not seem
to work:

===
\starttext
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[state=stop]
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[state=start]
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[number=1]
\dorecurse{28}{\input knuth\par }
\stoptext
===

For cross references I have defined a mirror for each document structure
element. For \chapter in Book One we use \chaptertwo in Book Two etc., so
each book has its own TOC that does not interfere with the other etc.

===

With this in mind, I need your help, gang!

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Pontus Lurcock
On Mon 21 Nov 2011, Idris Samawi Hamid ادريس   سماوي حامد wrote:

 2. The other, less sophisticated option: How do I get
 \setuppagenumbering to simply just reset the current pagenumber to
 1 and start from 1 again?

I think that what you want (untested) is \setuppagenumber[number=1]
rather than \setuppagenumbering[number=1] (as I understand it
\setuppagenumbering controls the way in which page numbers are
displayed and \setuppagenumber controls the numbers themselves).

 Let me explain the big picture. I have two (rather large) structured
 documents. I need to

 a) compile both at the same time to manage cross-references between each;

Could the recent work on cross-document referencing (
http://www.pragma-ade.com/general/magazines/mag-1103.pdf ) remove this
requirement?

Pont
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Aditya Mahajan

On Tue, 22 Nov 2011, Pontus Lurcock wrote:


On Mon 21 Nov 2011, Idris Samawi Hamid ادريس   سماوي حامد wrote:


2. The other, less sophisticated option: How do I get
\setuppagenumbering to simply just reset the current pagenumber to
1 and start from 1 again?


I think that what you want (untested) is \setuppagenumber[number=1]
rather than \setuppagenumbering[number=1] (as I understand it
\setuppagenumbering controls the way in which page numbers are
displayed and \setuppagenumber controls the numbers themselves).


There is also \setupuserpagenumber[number=1] and 
\setupuserpagenumber[way=bysuperpart] (if superpart is defined using 
\definehead).


Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد

On Mon, 21 Nov 2011 15:02:51 -0700, Pontus Lurcock p...@talvi.net wrote:


On Mon 21 Nov 2011, Idris Samawi Hamid ادريس   سماوي حامد wrote:


2. The other, less sophisticated option: How do I get
\setuppagenumbering to simply just reset the current pagenumber to
1 and start from 1 again?


I think that what you want (untested) is \setuppagenumber[number=1]
rather than \setuppagenumbering[number=1] (as I understand it
\setuppagenumbering controls the way in which page numbers are
displayed and \setuppagenumber controls the numbers themselves).


Aaarrrghgh ... It's so embarrassing to miss the obvious

\setuppagenumber[number=1]

does its job ... thnx!




Let me explain the big picture. I have two (rather large) structured
documents. I need to

a) compile both at the same time to manage cross-references between  
each;


Could the recent work on cross-document referencing (
http://www.pragma-ade.com/general/magazines/mag-1103.pdf ) remove this
requirement?


Now this I was unaware of ... I will study it. Hopefully it works between  
components ...


You've been a BIG help, Pontus, and

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Aditya,

On Mon, 21 Nov 2011 15:09:23 -0700, Aditya Mahajan adit...@umich.edu  
wrote:


There is also \setupuserpagenumber[number=1] and  
\setupuserpagenumber[way=bysuperpart] (if superpart is defined using  
\definehead).


Hmm, I was wondering if there was something like this in the system ...  
how do we get \setupuserpagenumber to replace \setuppagenumber? Or is it  
automatic when declared?


Thanks, Aditya and

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 21 Nov 2011 15:18:46 -0700, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:




Could the recent work on cross-document referencing (
http://www.pragma-ade.com/general/magazines/mag-1103.pdf ) remove this
requirement?


Now this I was unaware of ... I will study it. Hopefully it works  
between components ...


\startproduct cross-100
\component cross-001
\component cross-002
\stopproduct

Ah ... EXACTLY what I was looking for! And EXACTLY how my master file is  
structured!


Thanks again, Pontus, and

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Wolfgang Schuster

Am 21.11.2011 um 23:20 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 Hi Aditya,
 
 On Mon, 21 Nov 2011 15:09:23 -0700, Aditya Mahajan adit...@umich.edu wrote:
 
 There is also \setupuserpagenumber[number=1] and 
 \setupuserpagenumber[way=bysuperpart] (if superpart is defined using 
 \definehead).
 
 Hmm, I was wondering if there was something like this in the system ... how 
 do we get \setupuserpagenumber to replace \setuppagenumber? Or is it 
 automatic when declared?

\setuppagenumber is a synonym for \setupusepagenumber

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___