当我在正在处理的类(论文)中使用此命令时,缩进参数不起作用。奇怪的是,宏正在捕获第一个和第三个参数,即级别和数字框宽度。我无法使用 tocloft 包,因为该类会产生冲突……所以我希望你能帮助我,谢谢
\renewcommand*\l@subsection{\@dottedtocline{2}{5em}{3.2 em}}
% Definition of the table of contents command
\newcommand\tableofcontents{%
\chapter*{\contentsname \phantomsection\addcontentsline{toc}{chapter}{\protect \contentsname}}
\begin{flushright}{\if@english Pag. \else P\'{a}g. \fi}\end{flushright}%
\@starttoc{toc}%
}
% Table of contents numbers and lines dimensions
\newcommand*\l@part[2]{%
\ifnum \c@tocdepth >-2\relax
\addpenalty{-\@highpenalty}%
\addvspace{2.25em \@plus\p@}%
\setlength\@tempdima{3em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
{\leavevmode
\large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
\nobreak
\global\@nobreaktrue
\everypar{\global\@nobreakfalse\everypar{}}%
\endgroup
\fi}
\newcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\newcommand*\l@section{\@dottedtocline{1}{0pt}{2.3em}}
\newcommand*\l@subsection{\@dottedtocline{2}{0pt}{3.2em}}
\newcommand*\l@subsubsection{\@dottedtocline{3}{0pt}{4.1em}}
\newcommand*\l@paragraph{\@dottedtocline{4}{0pt}{5em}}
% List of tables and list of figures
\newcommand\listoffigures{%
\chapter*{\listfigurename \phantomsection\addcontentsline{toc}{chapter}{\protect \listfigurename}}%
\begin{flushright}{\if@english Pag. \else P\'{a}g. \fi}\end{flushright}
\@starttoc{lof}%
}
\newcommand*\l@figure{\@dottedtocline{1}{0pt}{2.3em}}
\newcommand\listoftables{%
\chapter*{\listtablename \phantomsection\addcontentsline{toc}{chapter}{\protect \listtablename}}%
\begin{flushright}{\if@english Pag. \else P\'{a}g. \fi}\end{flushright}
\@starttoc{lot}%
}
\let\l@table\l@figure % Command copy/paste