Page LayoutRemove all Subsection Headings Entries from ToC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
HcN
Posts: 5
Joined: Fri Jun 22, 2012 4:59 pm

Remove all Subsection Headings Entries from ToC

Post by HcN »

Hi everyone,

I wondering how to remove all subsections lines from the table of content, without removing their numbering nor position (ie, without using \subsection*{}) ?

Cheers !

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Remove all Subsection Headings Entries from ToC

Post by Stefan Kottwitz »

Hi,

you can adjust this by modifying the tocdepth counter, such as by

Code: Select all

\setcounter{tocdepth}{1}
Stefan
LaTeX.org admin
HcN
Posts: 5
Joined: Fri Jun 22, 2012 4:59 pm

Re: Remove all Subsection Headings Entries from ToC

Post by HcN »

Works just fine !
Thank you Stefan !
Post Reply