ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* pagenumbering and part options [CORRECTED]
@ 2011-11-21 21:33 Idris Samawi Hamid ادريس   سماوي حامد
  2011-11-21 22:02 ` Pontus Lurcock
  0 siblings, 1 reply; 8+ messages in thread
From: Idris Samawi Hamid ادريس   سماوي حامد @ 2011-11-21 21:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: pagenumbering and part options [CORRECTED]
  2011-11-21 21:33 pagenumbering and part options [CORRECTED] Idris Samawi Hamid ادريس   سماوي حامد
@ 2011-11-21 22:02 ` Pontus Lurcock
  2011-11-21 22:09   ` Aditya Mahajan
  2011-11-21 22:18   ` Idris Samawi Hamid ادريس   سماوي حامد
  0 siblings, 2 replies; 8+ messages in thread
From: Pontus Lurcock @ 2011-11-21 22:02 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: pagenumbering and part options [CORRECTED]
  2011-11-21 22:02 ` Pontus Lurcock
@ 2011-11-21 22:09   ` Aditya Mahajan
  2011-11-21 22:20     ` Idris Samawi Hamid ادريس   سماوي حامد
  2011-11-21 22:18   ` Idris Samawi Hamid ادريس   سماوي حامد
  1 sibling, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2011-11-21 22:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 716 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: pagenumbering and part options [CORRECTED]
  2011-11-21 22:02 ` Pontus Lurcock
  2011-11-21 22:09   ` Aditya Mahajan
@ 2011-11-21 22:18   ` Idris Samawi Hamid ادريس   سماوي حامد
  2011-11-21 22:31     ` Idris Samawi Hamid ادريس   سماوي حامد
  1 sibling, 1 reply; 8+ messages in thread
From: Idris Samawi Hamid ادريس   سماوي حامد @ 2011-11-21 22:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 21 Nov 2011 15:02:51 -0700, Pontus Lurcock <pont@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: pagenumbering and part options [CORRECTED]
  2011-11-21 22:09   ` Aditya Mahajan
@ 2011-11-21 22:20     ` Idris Samawi Hamid ادريس   سماوي حامد
  2011-11-22  5:22       ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Idris Samawi Hamid ادريس   سماوي حامد @ 2011-11-21 22:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Aditya,

On Mon, 21 Nov 2011 15:09:23 -0700, Aditya Mahajan <adityam@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: pagenumbering and part options [CORRECTED]
  2011-11-21 22:18   ` Idris Samawi Hamid ادريس   سماوي حامد
@ 2011-11-21 22:31     ` Idris Samawi Hamid ادريس   سماوي حامد
  0 siblings, 0 replies; 8+ messages in thread
From: Idris Samawi Hamid ادريس   سماوي حامد @ 2011-11-21 22:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 21 Nov 2011 15:18:46 -0700, Idris Samawi Hamid ادريس   سماوي حامد  
<ishamid@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: pagenumbering and part options [CORRECTED]
  2011-11-21 22:20     ` Idris Samawi Hamid ادريس   سماوي حامد
@ 2011-11-22  5:22       ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2011-11-22  5:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users
  Cc: Idris Samawi Hamid ادريس
	سماوي حامد


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

> Hi Aditya,
> 
> On Mon, 21 Nov 2011 15:09:23 -0700, Aditya Mahajan <adityam@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* pagenumbering and part options [CORRECTED]
@ 2011-11-21 21:55 Idris Samawi Hamid ادريس   سماوي حامد
  0 siblings, 0 replies; 8+ messages in thread
From: Idris Samawi Hamid ادريس   سماوي حامد @ 2011-11-21 21:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-11-22  5:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-21 21:33 pagenumbering and part options [CORRECTED] Idris Samawi Hamid ادريس   سماوي حامد
2011-11-21 22:02 ` Pontus Lurcock
2011-11-21 22:09   ` Aditya Mahajan
2011-11-21 22:20     ` Idris Samawi Hamid ادريس   سماوي حامد
2011-11-22  5:22       ` Wolfgang Schuster
2011-11-21 22:18   ` Idris Samawi Hamid ادريس   سماوي حامد
2011-11-21 22:31     ` Idris Samawi Hamid ادريس   سماوي حامد
2011-11-21 21:55 Idris Samawi Hamid ادريس   سماوي حامد

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).