Cecil Westerhof
writes: Is it possible to generate only a TOC? (\completecontent) When creating a document I like to have the 'stakeholders' to have an indication of what is going on. For this a TOC is enough. I could create the document and cut out the TOC, but it would be simpler if that could be auto generated.
Perhaps a starting point:
\startbuffer[mydocument] \completecontent \dorecurse{50}{\expanded{\chapter{Chapter \recurselevel}}} \stopbuffer
\setuplayout[page] \starttext % Here, you must know the number of pages of the toc. % Certaninly, this can be done much better! \dorecurse{3}{\typesetbuffer[mydocument][page=\recurselevel]} \stoptext
On Fri, Mar 18, 2011 at 10:35 AM, Peter Münster