Changes

Jump to navigation Jump to search
1,105 bytes added ,  08:37, 2 August 2005
Added formatted page numbering notes
To have some parts of your title texts ''not'' appear in the table of contents, use <cmd>nolist</cmd> and have a look at http://www.pragma-ade.com/general/magazines/mag-0001.pdf.
 
==Page numbering in tables of contents==
 
If you have a special page numbering style it won't automatically be reflected in the table of contents. You need to set the parameters of the table of contents separately. For example,
 
<texcode>
\starttext
\startfrontmatter
\placecombinedlist[MyContentsList]
\stopfrontmatter
\startbodymatter
\setuppagenumbering[way=bychapterleft=A,chapternumber=yes,numberseparator=/]
...
\stopbodymatter
</texcode>
 
will give you pagenumbering such as A1/1, A1/2 etc. on the pages in the bodymatter. In the table of contents, however, these will show up as 1-1, 1-2 etc. The ToC needs to be formatted separately.
 
To get a prefix to the page numbering (like "A"), use
 
<texcode>
\def\ChapterPrefix#1{A#1}
\setuplist[chapter][pagecommand=\ChapterPrefix]
</texcode>
 
To get the numberseparator working, you need to know that the ToC will use the separator that is active ''at the time the ToC is output''. So you need to set it immediately before you call the ToC command, e.g.
 
<texcode>
\setuppagenumbering[numberseparator=/]
\placecombinedlist[MyContentsList]
</texcode>
21

edits

Navigation menu