
minitoc
数値の深さが長いのです\setcounter{minitocdepth}{3}
が、次のような問題があります。
\documentclass{report}
\usepackage{newcent}
\usepackage{minitoc}
\setcounter{tocdepth}{1}
\setcounter{secnumdepth}{5}
\dominitoc
\nomtcrule
\setlength{\mtcindent}{5pt}
\setcounter{minitocdepth}{5}
\renewcommand{\mtcSfont}{\small\bfseries\rmfamily}
\renewcommand{\mtifont}{\large\bfseries\rmfamily}
\begin{document}
\tableofcontents
\appendix
\chapter{X}
\minitoc
\newpage
\section{X}
\section{X}
\section{X}
\section{X}
\section{X}
\section{X}
\section{X}
\subsection{X}
\subsection{X}
\subsection{x}
\subsection{X}
\section{X}
\section{X}
\section{X}
\section{X}
\section{X}
\subsection{X}
\subsection{X}
\subsection{X}
\subsection{X}
\subsection{X}
\subsection{X}
\subsection{X}
\subsection{X}
\subsection{X}
\subsection{X}
\subsection{X}
\subsection{X}
\end{document}
ご覧のとおり、A.12.10
は と重なっていますX
。
minitoc
この問題を解決するには、どのように設定を変更すればよいでしょうか?
答え1
これはminitoc
特定の問題。追加
\makeatletter
\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.5em}}% Used to be {3.8em}{3.2em}
\makeatother
ドキュメントのプリアンブルに を追加すると、目次関連ファイルのサブセクション番号に割り当てられる幅が から に増加します3.2em
。3.5em
この長さは、必要に応じて調整できます。