Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

up vote 20 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.

share|improve this answer
add comment

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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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