从下面的示例中可以看出,我的 LaTeX 书在自动生成的目录中的两位数章节编号和章节标题之间没有留出足够的空间。我似乎记得有一种方法可以为所有条目添加额外的空间,但我在网上找不到它。
[编辑]为了回应下面的评论,这里有一个最小的工作示例:
\documentclass{book}
\begin{document}
\tableofcontents
\chapter{Chapter}
\chapter{Chapter}
\setcounter{chapter}{10}
\chapter{Chapter}
\section{Section}
\section{Section}
\setcounter{section}{10}
\section{Section}
\section{Section}
\subsection{Subsection}
\subsection{Subsection}
\setcounter{subsection}{10}
\subsection{Subsection}
\subsection{Subsection}
\chapter{Chapter}
\end{document}
Run Code Online (Sandbox Code Playgroud)
来自https://tex.stackexchange.com/questions/13690/extra-space-for-numbered-titles-in-table-of-contents:
单独调整标题边距:
\makeatletter
\renewcommand{\l@section}{\@dottedtocline{1}{1.5em}{2.6em}}
\renewcommand{\l@subsection}{\@dottedtocline{2}{4.0em}{3.6em}}
\renewcommand{\l@subsubsection}{\@dottedtocline{3}{7.4em}{4.5em}}
\makeatother
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8497 次 |
| 最近记录: |