ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setuppage is ignored
@ 2014-05-07  8:57 Thomas Möbius
  2014-05-07 12:25 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Möbius @ 2014-05-07  8:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

it seems as if \setupnumber is ignored or I am using the wrong way to
reset the page numbering.

How to start the page numbering at 1 in the bodymatter?

---minimal exampe---

\setuppapersize[A5]

\setuppagenumbering[start=start,alternative=doublesided,location=]

\setupheader[style=small]
\setupheadertexts
  [{\getmarking[sectionnumber]~\getmarking[section]}]
  [pagenumber]
  [pagenumber]
  [{\getmarking[chapternumber]~\getmarking[chapter]}]

\setuphead[chapter][page={yes,right},header=empty,textstyle=\tfc]

\definehead     [intro] [chapter]
\setuphead      [intro] [number=no]

\definecombinedlist     [content][intro,chapter,section]
\setuplist      [intro] [headnumber=no]

\starttext
\startfrontmatter
\setuppagenumber[numberconversion=romannumerals,state=start,number=1]
%\setupnumber[page][1]
\completecontent
\intro{No number}
\input knuth
\input knuth
\input knuth
\stopfrontmatter

\startbodymatter
\setuppagenumber[numberconversion=numbers,state=start,number=1]
%\setupnumber[page][1]
\chapter{Has number}
\input knuth
\input knuth
\input knuth
\chapter{Has number}
\input knuth
\input knuth
\input knuth
\chapter{Has number}
\input knuth
\input knuth
\input knuth
\stopbodymatter
\stoptext
___________________________________________________________________________________
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] 4+ messages in thread

* Re: setuppage is ignored
  2014-05-07  8:57 setuppage is ignored Thomas Möbius
@ 2014-05-07 12:25 ` Wolfgang Schuster
  2014-05-08 14:46   ` Thomas Friedrich
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2014-05-07 12:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 07.05.2014 um 10:57 schrieb Thomas Möbius <kontakt@thomasmoebius.de>:

> Dear list,
> 
> it seems as if \setupnumber is ignored or I am using the wrong way to
> reset the page numbering.
> 
> How to start the page numbering at 1 in the body matter?

You have to change the value of the “userpage” counter, i.e. \setcounter[userpage][1] is needed.

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] 4+ messages in thread

* Re: setuppage is ignored
  2014-05-07 12:25 ` Wolfgang Schuster
@ 2014-05-08 14:46   ` Thomas Friedrich
  2014-05-08 15:14     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Friedrich @ 2014-05-08 14:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Wolfgang, it does work now!

I didn't now that the counter would be called 'userpage'.  It thought
I had to set the page-counter (\setconter[page][1]), as I was using

\setuppagenumber[numberconversion=numbers,state=start]

and not

\setupuserpagenumber[numberconversion=numbers,state=start]

It seems as if both commands have the same effect. Are these synonyms?

Is there a way for an end-user (like me) to infer from a command as
\setuppagenumber that the corresponding counter is called "userpage"?
I am just asking so I may get an understanding of how ConTeXt works,
and I don't have to bother the list with so many questions.

Thanks in advance.

Best
Thomas


2014-05-07 14:25 GMT+02:00 Wolfgang Schuster <schuster.wolfgang@gmail.com>:
>
> Am 07.05.2014 um 10:57 schrieb Thomas Möbius <kontakt@thomasmoebius.de>:
>
>> Dear list,
>>
>> it seems as if \setupnumber is ignored or I am using the wrong way to
>> reset the page numbering.
>>
>> How to start the page numbering at 1 in the body matter?
>
> You have to change the value of the “userpage” counter, i.e. \setcounter[userpage][1] is needed.
>
> 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
> ___________________________________________________________________________________



-- 
Thomas Möbius
Fakultät Statistik
Technische Universität Dortmund
44221 Dortmund
Telefon: 0231 755 - 3116
FAX: 0231 755 - 5304
E-Mail: friedrich@statistik.tu-dortmund.de
___________________________________________________________________________________
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] 4+ messages in thread

* Re: setuppage is ignored
  2014-05-08 14:46   ` Thomas Friedrich
@ 2014-05-08 15:14     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2014-05-08 15:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.05.2014 um 16:46 schrieb Thomas Friedrich <friedrich@statistik.tu-dortmund.de>:

> Thanks Wolfgang, it does work now!
> 
> I didn't now that the counter would be called 'userpage'.  It thought
> I had to set the page-counter (\setconter[page][1]), as I was using
> 
> \setuppagenumber[numberconversion=numbers,state=start]
> 
> and not
> 
> \setupuserpagenumber[numberconversion=numbers,state=start]
> 
> It seems as if both commands have the same effect. Are these synonyms?
> 
> Is there a way for an end-user (like me) to infer from a command as
> \setuppagenumber that the corresponding counter is called "userpage"?
> I am just asking so I may get an understanding of how ConTeXt works,
> and I don't have to bother the list with so many questions.

ConTeXt uses three different counters for the pages of the document:

1. The realpage counter is used for internal references to pages, this counter
   should never be reset because it is needed to have unique numbers for each page.

2. The userpage counter which is shown in the header, TOC etc. and you can reset
   its value at the begin of a new sectionblock etc.

3. The subpage counter can be used when you want to divide a certain sectionblock
   into even small parts to have local page numbers for a certain part of your document.

Each of these three counters have a command for the setup:

   - \setuprealpagenumber
   - \setupuserpagenumber
   - \setupsubpagenumber

The old \setuppagenumber command is a synonym for the \setupuserpagenumber
command because this is the counter you have to change for your documents.

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] 4+ messages in thread

end of thread, other threads:[~2014-05-08 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-07  8:57 setuppage is ignored Thomas Möbius
2014-05-07 12:25 ` Wolfgang Schuster
2014-05-08 14:46   ` Thomas Friedrich
2014-05-08 15:14     ` Wolfgang Schuster

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).