fix toc width

This commit is contained in:
EthanDeng
2022-09-18 19:41:42 +08:00
parent cf516c7f2e
commit 99eb12f4c4
2 changed files with 5 additions and 2 deletions

View File

@@ -1439,7 +1439,10 @@
\ifdefstring{\ELEGANT@lang}{cn}{
% \renewcommand{\cftchappresnum}{\beforechap\space}
% \renewcommand{\cftchapaftersnum}{\space\afterchap}
\setlength{\cftchapnumwidth}{\widthof{\textbf{附录~999}}}
% \setlength{\cftchapnumwidth}{\widthof{\textbf{附录~十一}}}
\renewcommand{\numberline}[1]{%
\@cftbsnum #1\@cftasnum~\@cftasnumb ~%
}
\g@addto@macro\appendix{%
% recover \thechapter in the \NR@chapter's \numberline
\ifELEGANT@Hy@later