TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So we have something like:

\usepackage[unicode=true, pdfusetitle,
 breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]


% we use this for our refernces as well

% redefinition of \equation for convenience
\let\oldequation = \equation
\let\endoldequation = \endequation
\AtBeginDocument{\let\oldlabel = \label}% \AtBeginDocument because hyperref redefines \label
  \StrBehind{#1}{eq:}[\Str]% remove "eq:" from labels

\newcommand{\listequationsname}{List of Equations}



\section{Brushless Motor Fundamentals}
\subsubsection{DC Motor Operation}
Torque is generated in DC motors from the magnetic force,
also known as the Lorentz force, which is produced when an
electric current is passed through a coil in a magnetic field.
This force is given by \ref{eq:Force}.
  F=q[E+(v\times B)]
where $F$ is the force perpendicular to the coil,
$E$ is the electric field in the coil,
$v$ is the velocity of the charged particles in the coil,
and $B$ is the magnetic field. From mechanics, torque is
  \tau=F\times r
\section{Brushless Motor Fundamentals 2}
\subsubsection{DC Motor Operation 2}
If the electrical force in \ref{eq:Force} is ignored,
and the remaining magnetic force is used in \ref{eq:Torque},
with the assumption that $v$ is perpendicular to $B$, we find that


How to show subsubsections and subsubsections of subsubsection in TOC?

share|improve this question
What exactly do you mean ? Could you give us an example ? From what I understood you want to remove \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2} from your preamble ? – MP0 May 10 '11 at 14:47
I like your question, but the code is really cluttered with a lot of stuff that has nothing to do with your problem. Could you please reduce your code to a minimal working example (MWE) by removing everything that doesn't change your problem? As an example, you can leave out all the equations and the related stuff, and for text, a single word like foo or bar suffices entirely. – doncherry Oct 17 '11 at 18:27
Related Question: Hide subsubsections in toc, but show in PDF. – Peter Grill Feb 28 at 11:13
up vote 43 down vote accepted

Increase the value of tocdepth and secnumdepth. The tocdepth value determines to which level the sectioning commands are printed in the ToC (they are always included in the .toc file but ignored otherwise). The secnumdepth value determines up to what level the sectioning titles are numbered. They are LaTeX counters and you can set them using \setcounter.

The sectioning levels have the following numbers:

-1 part     1 section     3 subsubsection  5 subparagraph
 0 chapter  2 subsection  4 paragraph

In the document class article, \chapter doesn't exist and 0 stands for \part instead.



share|improve this answer

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.