18 Mar
2011
18 Mar
'11
9:35 a.m.
Cecil Westerhof
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 -- Peter