![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
Is there a simple manner to restrict the table of contents to chapter and section, excluding subsections, subsubsections? Now I use (and get all) \startfrontmatter% the table of contents \setuppagenumber[number=1,numberconversion=romannumerals] \completecontent \stopfrontmatter I tried \completecontent[criterium={chapter,section}] bat that doesn't work. Could not find it on the wiki, but I might have missed the right search term. Hans van der Meer
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 09.07.2012 um 11:43 schrieb Meer, H. van der:
Is there a simple manner to restrict the table of contents to chapter and section, excluding subsections, subsubsections?
Now I use (and get all)
\startfrontmatter% the table of contents \setuppagenumber[number=1,numberconversion=romannumerals]
You can put this setup in a sectionblockenvironment.
\completecontent \stopfrontmatter
I tried \completecontent[criterium={chapter,section}] bat that doesn't work. Could not find it on the wiki, but I might have missed the right search term.
The list archive should contain dozens of answers to this question but here it is again. \starttext \title{Contents} % use \title{\headtext{content}} to get a language dependent title \placelist[chapter,section] … \stoptext or \definecombinedlist[content][chapter,section] \starttext \completecontent … \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
Am 09.07.2012 um 11:54 schrieb Wolfgang Schuster:
I tried \completecontent[criterium={chapter,section}] bat that doesn't work. Could not find it on the wiki, but I might have missed the right search term.
The list archive should contain dozens of answers to this question but here it is again.
\starttext
\title{Contents} % use \title{\headtext{content}} to get a language dependent title \placelist[chapter,section]
…
\stoptext
or
\definecombinedlist[content][chapter,section]
\starttext
\completecontent
…
\stoptext
There two additional ways with the new code. \setupcombinedlist[content][list={chapter,section}] \starttext \completecontent … \stoptext and \starttext \completecontent[list={chapter,section}] … \stoptext Wolfgang
participants (4)
-
Aditya Mahajan
-
Meer, H. van der
-
Wolfgang Schuster
-
Wolfgang Schuster