TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to have a document with some chapters of frontmatter followed by a table of contents showing all subsequent chapters and endmatter but not the frontmatter

Best I have found is \completecontent[criterium=all] but that includes frontmatter

How would I best do this in Context and where is the best place to find such things out in the future?


share|improve this question
up vote 4 down vote accepted

The simplest way is to replace the section with subject and the chapter with title. But that way you loose the numbering. I think that is desired in your case. If it's not, you have to define you own section heads with \definehead.

You can use tell the command \placelist to print only particular structure types. If you already use subject which should be included in the TOC you can easily create your own types based on the existing ones. That way you can retain the numbering.





\placelist [chapter, section]

\NoListSubject {Alpha}
\NoListSection {Beta}
\section {Gamma}
\subject {Delta}


The \definehead defines a custom structure type based on the second argument. The subject is unnumbered, the section is numbered.

\placelist [chapter, section] places only chapters and sections. The following prints all types:


Just change the sectioning commands in the frontmatter to custom types and tell \placelist which you want to be printed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.