Re: [NTG-context] Numbering sections
You can the section number with \getmarking[sectionnumber], the chapter number with \getmarking[chapternumber] etc.
Thanks Wolfgang! And another question about numbering: How can I let start the numbering of chapters with the number n (not 1, as default)? E.g. with n=0 or n=2? Thanks. Huseyin
Am 02.09.2013 um 15:21 schrieb "H. Özoguz"
You can the section number with \getmarking[sectionnumber], the chapter number with \getmarking[chapternumber] etc.
Thanks Wolfgang!
And another question about numbering: How can I let start the numbering of chapters with the number n (not 1, as default)? E.g. with n=0 or n=2?
To start chapters with a larger number you have to add \setupheadnumber[chapter][<n-1>] to your document, when the first chapter should start with 0 you need a conversion which prints always 1 less than the real number. \defineexpandable[1]\Previousnumber {\number\numexpr#1-1\relax} \defineconversion[previousnumber][\Previousnumber] \setuphead[chapter][conversion=previousnumber] \starttext \dorecurse{5}{\chapter{Chapter #1}} \stoptext Wolfgang
participants (2)
-
"H. Özoguz"
-
Wolfgang Schuster