Skip to content

Commit

Permalink
fix: 修复本科毕设的附录编号格式
Browse files Browse the repository at this point in the history
  • Loading branch information
everything411 authored Jun 16, 2022
1 parent a4aaef8 commit 4d2a76d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/undergraduate-thesis/misc/5_appendix.tex
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
\ctexset{
section/number = 附录\Alph{section}
}
\numberwithin{figure}{section}
\numberwithin{table}{section}
\numberwithin{lstlisting}{section}
\renewcommand{\thefigure}{附录\Alph{section}-\arabic{figure}}
\renewcommand{\thetable}{附录\Alph{section}-\arabic{table}}
\renewcommand{\thelstlisting}{附录\Alph{section}-\arabic{lstlisting}}
% 如果要为其他项目设置编号格式,参考如下注释行,这两行为算法块修改编号格式
% \numberwithin{algorithm}{section}
% \renewcommand{\thealgorithm}{附录\Alph{section}-\arabic{algorithm}}

附录相关内容…

Expand Down

0 comments on commit 4d2a76d

Please sign in to comment.