回忆录中的 ToC 中的孤儿

回忆录中的 ToC 中的孤儿

我如何调整回忆录类目录中的孤行条目?目录中有两行孤行条目。如何修复?目录中的示例页面。有问题的条目来自文档中的 \chapter 部分。

麦格达公司在此处输入图片描述

谢谢 David 和 John 的帮助。我应该发布一些类似下面这个最小示例的内容(抱歉),因为它总是有助于解决问题。我能够通过这种方式产生问题。我注释掉了 David 的解决方案以查看问题。我不知道您可以将 \clearpage 添加到 \addtocontents。太棒了!

我已经在目录中包含了用于划分特殊格式的代码。

使用该解决方案时,请务必运行两次。

再次感谢!

mgc 法语

\documentclass[14pt,extrafontsizes]{memoir}
\settypeblocksize{8in}{5in}{*}
\setlrmargins{*}{*}{1}
\setulmargins{1.5in}{*}{.5}
\checkandfixthelayout

\usepackage{lipsum}

\renewcommand{\thesection}{\arabic{section}}%

\cftsetindents{chapter}{0em}{3.0em}
\setlength{\cftbeforechapterskip}{0pt plus 0pt}% make ToC line spacing for chapters like sections
\renewcommand*{\cftchapterfont}{\cftsectionfont}% make ToC fontsize for chapters like sections

\cftpagenumbersoff{chapter}% no page numbers for chapters in toc
\renewcommand{\chapternumberline}[1]{}% no chapter numbers in toc

\begin{document}
\tableofcontents*
\chapter{Fred and Friends}
\lipsum[1-2]
\section{One Fine Day}
\lipsum[3-4]
\section{Another Fine Day}
\lipsum[5-6]
\section{Same Old Same Old}
\lipsum[7-8]
\section{Something Different}
\lipsum[9-10]
\section{Something Even More Different}
\lipsum[1-10]
\section{Something Stupendously Different}
\lipsum[1-10]
\section{Something Amazing}
\lipsum[1-10]
\chapter{Blah}
\lipsum[1-10]
\section{More of the Same}
\lipsum[1-10]
\chapter{Fred and Friends}
\lipsum[1-10]
\section{One Fine Day}
\lipsum[1-10]
\section{Another Fine Day}
\lipsum[1-10]
\section{Same Old Same Old}
\lipsum[1-10]
\section{Something Different}
\lipsum[1-10]
\chapter{Blah}
\lipsum[1-10]
\section{More of the Same}
\lipsum[1-10]
\chapter{Fred and Friends}
\lipsum[1-10]
\section{One Fine Day}
\lipsum[1-10]
\section{Another Fine Day}
\lipsum[1-10]
\section{Same Old Same Old}
\lipsum[1-10]
\section{Something Different}
\lipsum[1-10]
\chapter{Blah}
\lipsum[1-10]
\section{More of the Same}
\lipsum[1-10]

%\addtocontents{toc}{\clearpage}

\chapter{Fred and Friends}
\lipsum[1-10]
\section{One Fine Day}
\lipsum[1-10]
\section{Another Fine Day}
\lipsum[1-10]



\end{document}

相关内容