Skip to content

Commit

Permalink
添加附录的 \autoref 名称;Close #67
Browse files Browse the repository at this point in the history
  • Loading branch information
sikouhjw committed Apr 10, 2022
1 parent 315a1fe commit c3cc2de
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions gdutthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1091,11 +1091,18 @@
\cs_set:Npn\thetable{\thechapter-\arabic{table}}
\cs_set:Npn\thefigure{\thechapter-\arabic{figure}}
%% 设置引用格式
\newcommand{\subfigureautorefname}{图}
\newcommand{\figureautorefname}{图}
\newcommand{\tableautorefname}{表}
\labelformat{equation}{(#1)}
\newcommand{\equationautorefname}{公式}
\labelformat{ equation } { (#1) }
\clist_map_inline:nn
{
{ subfigure , 图 },
{ figure , 图 },
{ table , 表 },
{ equation , 公式 },
{ appendix , 附录 },
}
{
\cs_new:cpn { \clist_item:nn {#1} {1} autorefname } { \clist_item:nn {#1} {2} }
}
%% 设置浮动体间距
\setlength{\floatsep}{2\baselineskip-2\ccwd-1pt}
\setlength{\textfloatsep}{2\baselineskip-2\ccwd-1pt}
Expand Down

0 comments on commit c3cc2de

Please sign in to comment.