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

I am trying to set the depth of the table of contents.

I used


This actually works fine, almost. The table of contents is showing subsections as well, but these are not pushed forward below the dominating section names. The list of sections and subsections is aligned to the left with the same margin.

Is there a way to fix it?

share|improve this question
What document class are you using? – Werner Aug 30 '12 at 2:29
@Werner, amsbook. – kloop Aug 30 '12 at 2:31
up vote 3 down vote accepted

Change the values used in \@tocline for \l@subsection:





\chapter{Test Chapter}
\section{Test Section}
\subsection{Test Subsection}

enter image description here

The original definition in amsbook.cls is


and the syntax for \@tocline is

\@tocline{<level>}{<space above>}{<indent from left margin>}{<hang indent>}{<font attributes>}

You can adjust the values according to your needs.

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.