# 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.

[tags]latex, subsubsection, paragraph, section, numbering, tex[/tags]

This entry was posted in programming and tagged . Bookmark the permalink.

### 27 Responses to Latex: Numbered Subsubsections

1. Shimul says:

And the whole blog is good

Totally great

Good job

:D

2. Alice says:

This was totally helpful! Thanks so much :)

3. Dweia says:

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

4. Sandro says:

Good job!! Thanks

5. Volpe says:

Thank you, this was very helpful :)

6. Maya Aviv says:

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

7. nachiket says:

Thanks a lot. It solved my problem

8. Ne says:

Thank you very much. It is helpful to me.

9. Mohammed khalid says:

Thanks a lot. I was looking for this info.

10. wa says:

thanks! helped me out

11. Yen 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 :-)

12. Yen 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. :-)

13. artem says:

Very helpful. Thanks a lot! :-)

14. Daniel says:

Very helpful. It was what I was looking for. Thanks

15. shyam says:

Thanks a lot for such useful information

16. Sebnem Er says:

Thanks a million… very clear instructions…

17. santi novani says:

thanks a lot. it was very helpful

18. Student says:

Thanks a lot! :)

19. Matt says:

Great! Thanks :)

20. Liviu says:

Hey, thanks.
Great post: short and straight to the point.
That’s the answer I’ve been looking for. Got my problem solved now.

21. D Mandal says:

Dear All,
I am facing problem in getting correct Figure No. in Latex. I am using the following code for subfigures:

\begin{figure}[htpb]
\centering
\subfloat[$1$mm]{\label{fig:LIT1}\includegraphics[width=0.22\textwidth  ]{LIT_1mm}}
\hfill
\subfloat[$3$mm]{\label{fig:LIT3}\includegraphics[width=0.22\textwidth  ]{LIT_3mm}}
\hfill
\subfloat[$5$mm]{\label{fig:LIT5}\includegraphics[width=0.22\textwidth  ]{LIT_5mm}}
\hfill
\subfloat[$10$mm]{\label{fig:LIT10}\includegraphics[width=0.22\textwid th]{LIT_10mm}}
\caption{Photographs of Li$_2$TiO$_3$ pebbles.}
\label{fig:packingLIT}
\end{figure}

and the following code for Figures without sub-figures,

\begin {figure}[htbp]
\centering
\includegraphics[width=0.95\textwidth  ]{TG_Li2CO3_f}
\caption{TG-DTA curves of Li$_2$CO$_3$ decomposition. Temperature was ramped at $10^oC/$min.}
\label{fig:TGLi2CO3}
\end{figure}

I want somebody’s help,

D. Mandal

Previewed comment:
Dear All,
I am facing problem in getting correct Figure No. in Latex. I am using the following code for subfigures:
\begin{figure}[htpb]
\centering
\subfloat[$1$mm]{\label{fig:LIT1}\includegraphics[width=0.22\textwidth  ]{LIT_1mm}}
\hfill
\subfloat[$3$mm]{\label{fig:LIT3}\includegraphics[width=0.22\textwidth  ]{LIT_3mm}}
\hfill
\subfloat[$5$mm]{\label{fig:LIT5}\includegraphics[width=0.22\textwidth  ]{LIT_5mm}}
\hfill
\subfloat[$10$mm]{\label{fig:LIT10}\includegraphics[width=0.22\textwid th]{LIT_10mm}}
\caption{Photographs of Li$_2$TiO$_3$ pebbles.}
\label{fig:packingLIT}
\end{figure}
and the following code for Figures without sub-figures,
\begin {figure}[htbp]
\centering
\includegraphics[width=0.95\textwidth  ]{TG_Li2CO3_f}
\caption{TG-DTA curves of Li$_2$CO$_3$ decomposition. Temperature was ramped at $10^oC/$min.}
\label{fig:TGLi2CO3}
\end{figure}
I want somebody’s help,
D. Mandal
India

22. Eduardo Oportus says:

Thank You so much! It was very helpful.

23. Marcus says:

thank you! So simple and good :)

24. Marcus says:

@ santi novani:
You are using Internet Explorer?

25. Torben says:

Good job, thanks sir!

26. James says:

Thank you!!!!!