LATEX 在section层级目录上也加上虚线

只添加\tableofcontent会导致section层级目录上没有虚线

可以在tex文件一开始先加上下面这句话:

\titlecontents{section}[0pt]{\addvspace{5pt}\filright}              
{\contentspush{\thecontentslabel\ 
}}              
{}{\titlerule*[8pt]{.}\contentspage}

另外,若想调整目录间距还可以通过

\begin{spacing}{1.0}
\tableofcontents
\end{spacing}

猜你喜欢

转载自blog.csdn.net/qq_41598072/article/details/113751998
今日推荐