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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
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