Skip to content

Commit

Permalink
chore: update toc style
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu committed Jun 28, 2024
1 parent 5c7e242 commit 38cbedd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sjtutex/source/sjtutex.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -5318,23 +5318,24 @@
% \end{macro}
%
% \changes{v2.1.2}{2024/03/31}{改用 \pkg{titletoc} 设置目录格式。}
% \changes{unreleased}{2024/06/28}{更新目录样式。}
% \begin{macrocode}
\tl_set:Nn \SJTU@leaders { \titlerule* [ 4bp ] { . } }
\contentsmargin [ 2.55 em ] { 0 pt }
%<article>\titlecontents { section }
%<!article>\titlecontents { chapter }
[ 0 pt ] { \addvspace { 6 bp } \bfseries }
{ \contentspush { \thecontentslabel \quad } } { }
{ \contentspush { \thecontentslabel \enskip } } { }
{ \SJTU@leaders \thecontentspage }
%<article>\titlecontents { subsection }
%<!article>\titlecontents { section }
[ 2 em ] { }
{ \contentspush { \thecontentslabel \quad } } { }
{ \contentspush { \thecontentslabel \enskip } } { }
{ \SJTU@leaders \thecontentspage }
%<article>\titlecontents { subsubsection }
%<!article>\titlecontents { subsection }
[ 4 em ] { }
{ \contentspush { \thecontentslabel \quad } } { }
{ \contentspush { \thecontentslabel \enskip } } { }
{ \SJTU@leaders \thecontentspage }
% \end{macrocode}
%
Expand All @@ -5357,7 +5358,7 @@
{ \SJTU@listof {#4} {#2} }
\titlecontents {#2}
[ 0 pt ] { }
{ \contentspush { #3 \space \thecontentslabel \quad } } { }
{ \contentspush { #3 \space \thecontentslabel \enskip } } { }
{ \SJTU@leaders \thecontentspage }
\exp_args:Nnv \contentsuse {#2} { ext@ #2 }
}
Expand Down

0 comments on commit 38cbedd

Please sign in to comment.