跨多页的目录

跨多页的目录

我的目录很长,所以它从第 2 页开始,当页面写满时不会拆分。我如何实现自动拆分?我不想手动拆分,因为我仍在处理文档。

\usepackage{tocloft}
\renewcommand*{\thesection}{\Roman{section}.}
\renewcommand*{\thesubsection}{\arabic{subsection}.}
\renewcommand*{\thesubsubsection}{\alph{subsubsection})}
\renewcommand*{\theparagraph}{\alph{paragraph}\alph{paragraph})}
\renewcommand*{\thesubparagraph}{(\arabic{subparagraph})}

\setcounter{secnumdepth}{\subparagraphnumdepth}% number until subparagraph
\setcounter{tocdepth}{\subparagraphtocdepth}% show until subparagraph in ToC
%\setlength{\cftsubsecnumwidth}{10cm}
%\setlength{\cftchapnumwidth}{10cm}
%\setlength{\cftsecnumwidth}{10cm}
\BeforeTOCHead[toc]{%
\KOMAoptions{parskip=false}% no parskip in ToC
\RedeclareSectionCommand[afterskip=1sp minus 1sp]{chapter}% no skip after ToC title
}
\DeclareTOCStyleEntry[numwidth=0.7cm,indent=0cm]{chapter}{chapter}
\DeclareTOCStyleEntry[numwidth=0.7cm,indent=0.7cm]{section}{section}
\DeclareTOCStyleEntry[numwidth=0.7cm,indent=1.4cm]{default}{subsection}
\DeclareTOCStyleEntry[numwidth=0.7cm,indent=2.1cm]{default}{subsubsection}
\DeclareTOCStyleEntry[numwidth=0.7cm,indent=2.8cm]{default}{paragraph}
\DeclareTOCStyleEntry[numwidth=0.7cm,indent=3.5cm]{default}{subparagraph}

相关内容