TOC 編號與標題之間的間距

TOC 編號與標題之間的間距

如何增加目錄中小節編號和標題名稱之間的間距。我正在使用 www.sharelatex.com。

當我有大量小節時,節號和標題會重疊。

\documentclass[12pt, openany]{book}

% geometry sets paper dimensions
\usepackage[    paperheight=8in,
                paperwidth=6in,
                top=.1in,
                bottom=.2in,
                right=.1in,
                left=.1in,
                heightrounded]{geometry} 

% Font Style
\usepackage{bookman}

\begin{document}

\tableofcontents
\setcounter{tocdepth}{3}

\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\section{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}

\end{document}

編輯:2014 年 12 月 22 日在以下位置找到了我的問題的答案羅馬數字在目錄中變得“太寬”

我將這兩行添加到序言中。

\usepackage[tocindentauto]{tocstyle}
\usetocstyle{KOMAlike}

答案1

由於上述連結缺乏titletoc解決方案,這裡有一個:

\documentclass[12pt, openany]{book}

% geometry sets paper dimensions
\usepackage[ paperheight=8in,
                paperwidth=6in,
                top=.1in,
                bottom=.2in,
                right=.1in,
                left=.1in,
                heightrounded]{geometry}

% Font Style
\usepackage{bookman}
\usepackage{eqparbox}
\usepackage{titletoc}

\titlecontents{chapter}[0em]{\vspace{.25\baselineskip}}
{\eqparbox{ch}{\bfseries\thecontentslabel}\enspace}{}
{\hspace{.5em}\hfill\contentspage}

\titlecontents{section}[1.8em]{\vspace{.25\baselineskip}}
{{\thecontentslabel}\enspace}{}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}

\titlecontents{subsection}[4.5em]{\vspace{.25\baselineskip}}
{\eqparbox{Ss}{\thecontentslabel}\enspace}{}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}

\begin{document}

\tableofcontents
\setcounter{tocdepth}{3}

\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\chapter{Test}
\section{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}
\subsection{Test}

\end{document} 

在此輸入影像描述

相關內容