当条目之间的垂直间距增加时,目录无法插入分页符

当条目之间的垂直间距增加时,目录无法插入分页符

考虑包含以下命令的 MWE \renewcommand\cftchapafterpnum{\vspace*{5pt}}

\documentclass{book}
\usepackage{tocloft}
\usepackage{xcolor}

\let\cleardoublepage\clearpage  
\renewcommand{\cftchapfont}{\large} 
\renewcommand\cftchapafterpnum{\vspace*{5pt}} 
\renewcommand{\cftchapleader}{\dotfill}

\begin{document}
\tableofcontents


\addcontentsline{toc}{chapter}{1. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\addcontentsline{toc}{chapter}{2. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\addcontentsline{toc}{chapter}{3. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\addcontentsline{toc}{chapter}{4. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\addcontentsline{toc}{chapter}{5. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\addcontentsline{toc}{chapter}{6. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\addcontentsline{toc}{chapter}{7. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\addcontentsline{toc}{chapter}{8. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\addcontentsline{toc}{chapter}{9. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\addcontentsline{toc}{chapter}{10. \textcolor{red}{\textbf{A rose by any other name would smell as sweet.}} A rose by any other name would smell as sweet. A rose by any other name would smell as sweet. A rose by any other name would smell as sweet.}
\end{document}

产生内容输出

在此处输入图片描述

除了 (1) 之外,未能插入分页符---还有(出于我不知道的原因)--- (2) 目录之前的空白页,以及 (3) 目录页上出现的页眉(我没有调用)显示内容,以及页码。

我注意到,如果我\renewcommand\cftchapafterpnum{\vspace*{5pt}}从序言中删除该命令,一切似乎都会恢复正常的工作状态 - 即,目录会在适当的位置插入分页符,前导空白页会消失,并且神秘的页眉也不复存在。

问题:为什么使用\renewcommand\cftchapafterpnum{\vspace*{5pt}}似乎会造成如此大混乱?我该如何纠正这些异常,同时仍将章节条目之间的垂直间距再增加 5pt?

谢谢。

相关内容