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
Am 07.05.2014 um 10:57 schrieb Thomas Möbius
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
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
Am 07.05.2014 um 10:57 schrieb Thomas Möbius
: 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
Am 08.05.2014 um 16:46 schrieb Thomas Friedrich
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
participants (3)
-
Thomas Friedrich
-
Thomas Möbius
-
Wolfgang Schuster