我需要创建一个自定义的 multitoc,到目前为止我已经非常接近了。有两件事我不明白
- 我怎样才能改变两个目录列之间的间距(需要更大)
- 如何在章节标题下方添加一行(从编号到页面)
如果有人在定制 TOC 方面有更多经验,可以对此提供一些解释吗?
这是我的 MWE
\documentclass[10pt]{article}
\usepackage{xcolor}
\usepackage[ampersand]{easylist}
\usepackage{tocloft}
\usepackage[toc]{multitoc}
% tocloft configuration for custom table of contents
% As this interferes with the hyperref setup, the link styling has to be done local or links have to be removed for the toc.
\renewcommand{\cfttoctitlefont}{\Large\bfseries\color{blue}}
\renewcommand{\cftsecfont}{\bfseries\color{blue}}
\renewcommand{\cftsecpagefont}{\bfseries\color{blue}}
\renewcommand{\cftsubsecfont}{\bfseries\color{blue}}
\renewcommand{\cftsubsecpagefont}{\color{blue}}
\renewcommand{\cftsubsubsecfont}{\bfseries\color{blue}}
\renewcommand{\cftsubsubsecpagefont}{\color{blue}}
\renewcommand{\cftdot}{} % remove dots from toc
\begin{document}
\tableofcontents
\section{A}
\section{Section 1}
\subsection{Subsection 1}
\section{Section 2}
\subsection{Subsection 2}
\subsection{Subsection 2}
\section{Section 3}
\subsection{Subsection 3}
\end{document}