LaTeX forum ⇒ GeneralRemove subsubsection from TOC

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

Remove subsubsection from TOC

Postby LatexBeginnerrrr » Wed May 01, 2019 1:23 pm

Hello everyone
I added my table of contents by using this code:
  1. \tableofcontents

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

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

Postby Johannes_B » Wed May 01, 2019 1:36 pm

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

Postby LatexBeginnerrrr » Wed May 01, 2019 1:38 pm

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:
  1. \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

Postby LatexBeginnerrrr » Wed May 01, 2019 2:16 pm

The problem is solved. Thank you.


Return to “General”

Who is online

Users browsing this forum: No registered users and 8 guests