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
  • 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
  • Convert PNG to EPS

  • 3 Responses to “Latex: Numbered Subsubsections”

    1. Gravatar Shimul BANGLADESH Says: Reply to this comment

      your subsubsection was helpful

      And the whole blog is good

      Totally great

      Good job

      :D

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.3 on Windows Windows XP
    2. Gravatar Alice CANADA Says: Reply to this comment

      This was totally helpful! Thanks so much )

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.13 on Windows Windows Vista
    3. Gravatar Dweia DENMARK Says: Reply to this comment

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

      Posted using Mozilla Firefox Mozilla Firefox 3.0.1 on Linux Linux

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <pre lang=""> <em> <i> <strike> <strong>

    [Quote selected]