TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
\title{Rechtevergabe Testdokument}
\addcontentsline{toc}{section}{Bereich A}
\addcontentsline{toc}{subsection}{Kapitel I}
\addcontentsline{toc}{subsection}{Kapitel II}
\addcontentsline{toc}{section}{Bereich B}

Gives me no TOC at all (after running pdflatex twice). Moving \addcontentsline to before \tableofcontents and removing \newpage did no change. I intend to obtain a document with TOC only. Thank you.

share|improve this question

The \addcontentsline commands are written at \shipout. But your page is empty. Removing the \newpage after \tableofcontents should work (it does for me) or put something on the page with the \addcontentsline commands, e.g. \newpage\mbox{}.

share|improve this answer

Your Answer


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