mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 20:34:36 +08:00
fix toc width
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
\documentclass[lang=cn,10pt,newtx]{elegantbook}
|
\documentclass[lang=cn,10pt,newtx,scheme=chinese]{elegantbook}
|
||||||
|
|
||||||
\title{ElegantBook:优美的 \LaTeX{} 书籍模板}
|
\title{ElegantBook:优美的 \LaTeX{} 书籍模板}
|
||||||
\subtitle{Elegant\LaTeX{} 经典之作}
|
\subtitle{Elegant\LaTeX{} 经典之作}
|
||||||
|
|||||||
@@ -1439,7 +1439,10 @@
|
|||||||
\ifdefstring{\ELEGANT@lang}{cn}{
|
\ifdefstring{\ELEGANT@lang}{cn}{
|
||||||
% \renewcommand{\cftchappresnum}{\beforechap\space}
|
% \renewcommand{\cftchappresnum}{\beforechap\space}
|
||||||
% \renewcommand{\cftchapaftersnum}{\space\afterchap}
|
% \renewcommand{\cftchapaftersnum}{\space\afterchap}
|
||||||
\setlength{\cftchapnumwidth}{\widthof{\textbf{附录~999}}}
|
% \setlength{\cftchapnumwidth}{\widthof{\textbf{附录~十一}}}
|
||||||
|
\renewcommand{\numberline}[1]{%
|
||||||
|
\@cftbsnum #1\@cftasnum~\@cftasnumb ~%
|
||||||
|
}
|
||||||
\g@addto@macro\appendix{%
|
\g@addto@macro\appendix{%
|
||||||
% recover \thechapter in the \NR@chapter's \numberline
|
% recover \thechapter in the \NR@chapter's \numberline
|
||||||
\ifELEGANT@Hy@later
|
\ifELEGANT@Hy@later
|
||||||
|
|||||||
Reference in New Issue
Block a user