30

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?

2 Answers 2

56

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.

31

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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .