I used the \subsubsection command hoping that LaTeX would add a subsection inside a section

\subsubsection{sub sub section}

But it just made the text within the {} bold. It did not give it a subsubsection number. My document class is report:

\documentclass[a4paper,12pt]{report}

Could someone please help me to fix this?

up vote 40 down vote accepted

If you want to include \subsubsection in the numbering, you have to change the depth of numbering this way:

\setcounter{secnumdepth}{3}

in the preamble, and... that's it, since 3 is the level of the subsubsection.

By default, the lowest sectioning level that is numbered is \subsection (level 2) in the book and report classes, and \subsubsection (level 3) in the article class. To number \subsubsections in report, add the following to your preamble:

\setcounter{secnumdepth}{3}

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.