I'm using a \documentclass[11pt]{book} document.
I have tried to define a TOC with a maximum depth of 4 with:
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\tableofcontents
The resulting pdf document doesn't take into account my setting and goes to the deepest level in my TOC.
I have not see anything relevant in the console, but I'm really a novice in LaTeX.
\chapter(level 0),\section(level 1),\subsection(2),\subsubsection(3) and\paragraph(4), including them in the table of contents, which is produced by\tableofcontentsand not by\makeindex. Please, try adding a minimal working example (MWE) that illustrates your problem. – egreg Jun 24 '12 at 13:15\paragraph). Try what happens if you use 0. If this doesn't change the toc then you probably reset the value somewhere else in your document. – Ulrike Fischer Jun 24 '12 at 13:16\chapterlevel was included in TOC, so for a depth of 4 like3.2.1.3I need to set the depth to 3. – David Casillas Jun 24 '12 at 13:35