如何使 \paragraph 具有与目录中的 \chapter \section \subsection \subsubsection 相同的格式?

如何使 \paragraph 具有与目录中的 \chapter \section \subsection \subsubsection 相同的格式?

我使用段落是因为我需要一些条目比子部分更深入,但是在目录中,\paragraph 的字体与其他字体不同(奇怪的是 \paragraph 的字体大小更大),并且 \paragraph 的页码既是不同的字体,又与其他页码不一致。我该如何修复它,使 \paragraph 的格式与其他格式相同?

答案1

对于遇到此问题的其他任何人,命令

\renewcommand\cftparafont{<Insert font commands for text in table of contents>}
\renewcommand\cftparapagefont{<Insert font commands for page numbers in table of contents>}

例如

\renewcommand\cftparafont{\footnotesize \sf}
\renewcommand\cftparapagefont{\bfseries\sffamily}

让你修复这个问题

相关内容