Changes

Jump to navigation Jump to search
687 bytes added ,  10:03, 2 February 2013
Code for suppressing page numbering added.
\completecontent [alternative=c]
\dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}
\stoptext
</texcode>
 
 
== Suppressing page numbering for the TOC pages ==
 
Sometimes the document needs to have pagenumbering according to realpages, but numbering shouldn't be visible until the first text page. This is Wolfgang's trick (January 2013) for suppressing the pagenumbers so that they'll still be counted:
 
<texcode>
\startsectionblockenvironment[frontpart]
\setuppagenumbering[location=]
\stopsectionblockenvironment
 
%\startsectionblockenvironment[bodypart]
%\setcounter[userpage][1]
%\stopsectionblockenvironment
 
\starttext
 
\startfrontmatter
\completecontent
\stopfrontmatter
 
\startbodymatter
\dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}
\stopbodymatter
 
\stoptext
</texcode>
102

edits

Navigation menu