Latex: Numbered Subsubsections

LaTex lets you break the document down into chapters, sections, subsections, subsubsections and paragraphs. By default subsubsections and paragraphs are not numbered or included in the table of contents. Sometimes this might be desirable. However, I usually find that in cases when I do not need them numbered, I usually never use them (ie. my documents are broken down by chapter, section, and subsection only). At other times, when I desire more granularity, I actually want subsubsections to show up in the TOC and have distinctive headings and numbers.

To enable this you will need to put 2 lines of code somewhere in your preamble:

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

The first line enables numbering of subsubsections. The second line includes subsubsections in the table of contents.

Btw, if you need to break down your document even more you can switch 3 to 4 in these lines to enable numbering for paragraphs.

Related Posts:

  • LaTex: Making Floatng Text Boxes
  • Let’s Learn LaTex: Part 2
  • LaTex Annoyances
  • Installing LaTex on Windows
  • LaTex: Fixing Wrong Figure Numbers
  • Latex: Rotate Inserted Images
  • Code Segments in Latex
  • Convert JPG and PNG to EPS on Windows
  • Latex Conditionals
  • Homeworks From Hell

  • 13 Responses to “Latex: Numbered Subsubsections”

    1. Shimul BANGLADESH Mozilla Firefox Windows says:

      your subsubsection was helpful

      And the whole blog is good

      Totally great

      Good job

      :D

      Reply  |  Quote
    2. Alice CANADA Mozilla Firefox Windows says:

      This was totally helpful! Thanks so much :)

      Reply  |  Quote
    3. Dweia DENMARK Mozilla Firefox Linux says:

      Very useful! I found I needed to number my subsubsection and this was just the thing! Thanks!

      Reply  |  Quote
    4. Sandro ITALY Mozilla Firefox Windows says:

      Good job!! Thanks

      Reply  |  Quote
    5. Volpe ITALY Mozilla Firefox Mac OS says:

      Thank you, this was very helpful :)

      Reply  |  Quote
    6. Maya Aviv ISRAEL Mozilla Firefox Windows says:

      thank you. it was very useful.
      Maya
      M.Sc student at Tel-Aviv university.

      Reply  |  Quote
    7. nachiket INDIA Mozilla Firefox Windows says:

      Thanks a lot. It solved my problem

      Reply  |  Quote
    8. Ne GERMANY Internet Explorer Windows says:

      Thank you very much. It is helpful to me.

      Reply  |  Quote
    9. Mohammed khalid SAUDI ARABIA Safari Windows says:

      Thanks a lot. I was looking for this info.

      Reply  |  Quote
    10. wa GERMANY Mozilla Firefox Windows says:

      thanks! helped me out

      Reply  |  Quote
    11. Yen CZECH REPUBLIC Mozilla Firefox Windows says:

      Hi, thanks a lot ;-)
      After that my subsubsection are “lettered” instead of numbered in TOC. There is a chance to change it to number?
      Example:
      I have \subsubsection (Hello) and it appears in TOC like
      5.1.2 Greetings
      b) Hello

      And I need it like: 5.1.2.1 Hello :-/

      I do not use \Chapter level, my first level is \Section…

      Thanks for any help :-)

      Reply  |  Quote
    12. [...] By default LaTex supports seven levels of document subdivision: part, chapter, section, subsection, subsubsection, paragraph and subparagraph. They all work in the same way, main difference being the formatting. For example, the chapter command (which is only defined in report and book document classes) will force a page break and will make the title take up half the page. Paragraph and subparagraph on the other hand don’t usually get numbered but you can change that if you want. [...]

    13. Yen CZECH REPUBLIC Mozilla Firefox Windows says:

      Thanks,
      I spend more time with uncle google :-) and after that I checked our diploma report for sure but there I found info about leveling for thesis and everything is alright.
      But I appreciate that, thanks again. :-)

      Reply  |  Quote

    Leave a Reply