Am 20.08.2014 um 16:14 schrieb Gerben Wierda <gerben.wie...@rna.nl>:

> See subject. Same question for other levels.

Method 1 (MkII only):

\starttext

\completecontent[level=chapter]

\dorecurse{10}
  {\chapter{Chapter #1}
   \dorecurse{2}
     {\section{Section #1.##1}
          \dorecurse{2}{\subsection{Subsection #1.##1.####1}}}}

\stoptext


Method 2 (MkII and MkIV):

\definecombinedlist[content][chapter]

\starttext

\completecontent

\dorecurse{10}
  {\chapter{Chapter #1}
   \dorecurse{2}
     {\section{Section #1.##1}
          \dorecurse{2}{\subsection{Subsection #1.##1.####1}}}}

\stoptext


Method 3 (MkIV only):

\starttext

\completecontent[list=chapter] % list={chapter,section}

\dorecurse{10}
  {\chapter{Chapter #1}
   \dorecurse{2}
     {\section{Section #1.##1}
          \dorecurse{2}{\subsection{Subsection #1.##1.####1}}}}

\stoptext


Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

Reply via email to