1

Am I missing something? I have headings from Chapter to Paragraph. All of the Chapter, Section, and Subsection headings are listed in the printed TOC. Nothing below Subsection prints in the TOC even though they are in the .toc file.

I have .toc file that is created from my .tex file. When I look at the .toc file, it looks correct. This is part of the code.

\contentsline {subsection}{\numberline {2.1.2}Form}{11}
\contentsline {subsubsection}{\numberline {2.1.2.1}Morphology}{11}

The subsubsection doesn't print. I've tried it with and without the numbers after \numberline on subsubsecction. Doesn't make a difference.

What can I do to get all of my headings to be listed in the TOC?

7

The tocdepth counter controls how deep the table of contents goes, and defaults to 3 (subsections). The secnumdepth counter controls which levels of the ToC get numbered. LaTeX Wikibook reference here. MWE with numbering and ToC entries given to the paragraph level:

\documentclass{report}
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}
\begin{document}
\tableofcontents
\chapter{Chapter One}
\section{Section One}
\subsection{Subsection One}
\subsubsection{Subsubsection One}
\paragraph{Paragraph One}
\end{document}
  • Note that this question will most likely by closed as duplicate. See my above link. Now that you have an up-voted answer I might merge both together to keep all answers on the same page. – Martin Scharrer Oct 17 '11 at 18:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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