Am 02.09.2013 um 15:21 schrieb "H. Özoguz" <[email protected]>:
>> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________