Latex 在TOC中的节号后添加空格

Latex 在TOC中的节号后添加空格,latex,Latex,从下面的示例可以看出,我的LaTeX书在自动生成的目录中的两位数章节号和章节标题之间没有留下足够的空间。我似乎记得有一种方法可以为所有条目添加额外的空间,但我在网上找不到 [编辑]针对下面的评论,这里有一个最基本的工作示例: \documentclass{book} \begin{document} \tableofcontents \chapter{Chapter} \chapter{Chapter} \setcounter{chapter}{10} \chapter{Chapter}

从下面的示例可以看出,我的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}
发件人:

单独调整标题页边距:

\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

答案可在TeX SE网站上找到: