![仅在添加内容之前的“shorttoc”中添加“\pagebreak”](https://linux22.com/image/439593/%E4%BB%85%E5%9C%A8%E6%B7%BB%E5%8A%A0%E5%86%85%E5%AE%B9%E4%B9%8B%E5%89%8D%E7%9A%84%E2%80%9Cshorttoc%E2%80%9D%E4%B8%AD%E6%B7%BB%E5%8A%A0%E2%80%9C%5Cpagebreak%E2%80%9D.png)
在我的目录中,我添加了一行来将附录与目录的其余部分分开。但是,即使是目录的简短版本(我使用软件包shorttoc
— 太长了,我想\pagebreak
在附录前添加一个,这样它会更有条理。
以下是我当前的简化代码:
\documentclass[12pt,a4paper]{book}
\usepackage[nottoc,numbib]{tocbibind}
\addto\captionsportuguese{
\renewcommand{\bibname}{Referências}
\renewcommand{\contentsname}{Índice}
}
\usepackage{shorttoc}
\addtocontents{toc}{\protect\thispagestyle{empty}}
\pagenumbering{gobble}
\begin{document}
\maketitle
\shorttoc{Índice Resumido}{0}
\tableofcontents
...
\appendix
% How to add a pagebreak here?
\addtocontents{toc}{\bigskip\medskip\noindent\textbf{Apêndice}\par}
...
\end{document