答案1
按照 Torbjorn 的建议使用tocloft
。以下是示例:
\documentclass{article}
\usepackage{tocloft}
\setlength{\cftsecnumwidth}{3em} %% adjust as you wish
\cftsetindents{section}{3em}{1.5em} %% adjust as you wish
\cftsetindents{subsection}{4.5em}{2.5em} %% adjust as you wish
\cftsetindents{subsubsection}{7em}{3.5em} %% adjust as you wish
\usepackage{blindtext} %% for dummy text
\begin{document}
\renewcommand{\thesection}{\Roman{section}}
\tableofcontents
\Blinddocument
\end{document}