When the number of sections and subsections goes into the double digits the chapter number and title in the minitoc
start to overlap:
\documentclass{book}
\usepackage{minitoc}
\setcounter{chapter}{9}
\begin{document}
\dominitoc% Initialization
\faketableofcontents
\chapter{bla}
\minitoc% Creating an actual minitoc
\section{One}
One
\section{One}
One
\section{One}
One
\section{One}
One
\section{One}
One
\section{One}
One
\section{One}
One
\section{One}
One
\section{One}
One
\section{One}
One
\section{One}
One
\subsection{One}
One
\subsection{One}
One
\subsection{One}
One
\subsection{One}
One
\subsection{One}
One
\subsection{One}
One
\subsection{One}
One
\subsection{One}
One
\subsection{One}
One
\subsection{One}
One
\subsection{One}
One
\end{document}
Any idea how to prevent this? Since I have a whole batch of documents like this it would be good to automate the width instead of applying a fixed width. Packages like tocstyle
that offer settings like tocindentauto
don't seem to affect mintoc
.
\l@subsection
or\l@section
issue, in my point of view.