I am quite satisfied with the default formatting of the TOC items in the amsbook class
, except for one little problem:
If you have more than 10 sections, then the extra digit will push the section name of the double digit sections further to the right, thus failing to align neatly with others.
How can I get rid of this effect, without using \parindent
that I had to set to 0 ?
Here is the compulsory MWE
\documentclass{amsbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\setlength\parindent{0cm}
\setcounter{tocdepth}{2}
\begin{document}
\tableofcontents
\section{Ok}
OK
\section{Ok}
OK
\section{Ok}
OK
\section{Ok}
OK
\section{Ok}
OK
\section{Ok}
OK
\section{Ok}
OK
\section{Ok}
OK
\section{Ok}
OK
\section{NOT Ok}
Not OK
\end{document}
section
is no environment ;-)