select TOC elements
With \placecontents I am able to put the TOC for a chapter right after the chapter heading. So far so good. But now I would like to suppress in the overall TOC all elements below the chapters. How to? At the moment I am using \completecontent for calling up the TOC. I looked in the ConTeXtGarden but the explanation for \completecontent didn't make me any wiser.For example, I do not understand the meaning of the three successive []-pairs in \completecontent[..][..][..] and the link to \setuplist didn't help me out. Hans van der Meer
Am 16.04.2013 um 10:46 schrieb "Meer, H. van der"
With \placecontents I am able to put the TOC for a chapter right after the chapter heading. So far so good. But now I would like to suppress in the overall TOC all elements below the chapters. How to? At the moment I am using \completecontent for calling up the TOC. I looked in the ConTeXtGarden but the explanation for \completecontent didn't make me any wiser.For example, I do not understand the meaning of the three successive []-pairs in \completecontent[..][..][..] and the link to \setuplist didn't help me out.
The syntax description is wrong, \placecontent has only one optional argument which expects a assignment, e.g. alternative=a. To place only TOC entry for certain headings you have to use \placelist, e.g. \placelist[section]. \starttext \chapter{One} \placelist[section] \section{First} \section{Second} \chapter{Two} \placelist[section] \section{Third} \section{Fourth} \stoptext Wolfgang
participants (2)
-
Meer, H. van der
-
Wolfgang Schuster