![如何使 \paragraph 與目錄中的 \chapter \section \subsection \subsubsection 具有相同的格式?](https://rvso.com/image/420060/%E5%A6%82%E4%BD%95%E4%BD%BF%20%5Cparagraph%20%E8%88%87%E7%9B%AE%E9%8C%84%E4%B8%AD%E7%9A%84%20%5Cchapter%20%5Csection%20%5Csubsection%20%5Csubsubsection%20%E5%85%B7%E6%9C%89%E7%9B%B8%E5%90%8C%E7%9A%84%E6%A0%BC%E5%BC%8F%EF%BC%9F%20.png)
我使用段落是因為我需要一些條目比 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}
允許您修復此問題