GeneralRemove subsubsection from TOC

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
LatexBeginnerrrr
Posts: 8
Joined: Sun Apr 28, 2019 2:15 am

Remove subsubsection from TOC

Post by LatexBeginnerrrr »

Hello everyone
I added my table of contents by using this code:

Code: Select all

\tableofcontents
But my subsubsections are also included. Is there a way to remove them of my TOC?
Thank you

Recommended reading 2024:

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

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

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Remove subsubsection from TOC

Post by Johannes_B »

You just asked how to get subsubsections included in the toc.
What are you trying to achieve?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
LatexBeginnerrrr
Posts: 8
Joined: Sun Apr 28, 2019 2:15 am

Remove subsubsection from TOC

Post by LatexBeginnerrrr »

No, I'm trying to remove them from my TOC. My current TOC has the sections, subsections and subsubsections included.
I don't want the subsubsections.

I found this code on the internet:

Code: Select all

\setcounter{tocdepth}{2}
But that doesn't seem to change anything. Is there a specific place where I should put this code?
LatexBeginnerrrr
Posts: 8
Joined: Sun Apr 28, 2019 2:15 am

Remove subsubsection from TOC

Post by LatexBeginnerrrr »

The problem is solved. Thank you.
Post Reply