LaTeX - Setting the Table of Contents (TOC) depth

LaTeX question: For a technical document I'm creating with LaTeX, there are a lot of sections that have a repeated/consistent format. This is exactly what I want, but for a 160 page document, I ended up with a 15-page table of contents (TOC). Is there are way to control the "depth" of the table of contents?

After a little research ... yes, I can. Here's some sample code that I put in the LaTeX preamble, just before the \tablofcontents tag:


This created a much smaller TOC; only 2 pages. It created only an entry for each Chapter and Section, and did not include any Subsections, or anything else beneath the Section depth. Perfect - exactly what I wanted. Life is beautiful once again.


Post new comment

The content of this field is kept private and will not be shown publicly.