Sign up ×
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 am writing a thesis using \documentclass[11pt,a4paper]{report}. However, \subsubsection is not getting numbered. So on searching in TeX I got an answer to insert \setcounter{secnumdepth}{3}.

Please tell me where to insert \setcounter{secnumdepth}{3}.

share|improve this question
Welcome to TeX.SE. – Peter Grill May 21 '12 at 7:26

1 Answer 1

up vote 10 down vote accepted

Commands like this belong into the preamble, i.e. between \documentclass and \begin{document}. If you want your \subsubsections also to be appear in the table of contents you should add \setcounter{tocdepth}{3} as well. Please see How to show subsections and subsubsections in TOC? for more information about this, including a list of sectioning levels and their numbers.




\chapter{Some chapter}
\section{Some section}
\subsection{Some subsection}
\subsubsection{Some subsubsection}
Text ...

share|improve this answer
hey thank you so worked – Vidhya May 21 '12 at 7:58
Please help me to right align the chapter heading also – Vidhya May 21 '12 at 8:05
In this case please click on the tick-mark on the upper right to accept this answer and conclude this question. You can also wait for more answers or accept another answer later if you want. – Martin Scharrer May 21 '12 at 8:06
About the chapter header: Please post a new question using the 'Ask Question' button above, after using the search to check if that question was already asked. There should always be only one question per thread on this site. – Martin Scharrer May 21 '12 at 8:07

Your Answer


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.