Skip to content

Commit

Permalink
use \thechapter for \thefigure and \thetable [ci skip]
Browse files Browse the repository at this point in the history
Fix #166.
  • Loading branch information
stone-zeng committed Mar 10, 2021
1 parent 56fc513 commit d6e8908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- 修复
- 允许在 `biblatex` 下使用多个数据源 - [#186](https://github.com/stone-zeng/fduthesis/issues/186)
- 正确调用引用样式 - [#183](https://github.com/stone-zeng/fduthesis/issues/183)
- 直接调用 `\thechapter` 使得附录中的图表编号正确显示 - [#166](https://github.com/stone-zeng/fduthesis/issues/166)

## [v0.7e (2020-08-30)](https://github.com/stone-zeng/fduthesis/compare/v0.7d...v0.7e)

Expand Down
5 changes: 3 additions & 2 deletions source/fduthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -4402,12 +4402,13 @@ Copyright (C) 2017&ndash;2021 by Xiangdong Zeng <xdzeng96@gmail.com>.
%
% \begin{macro}{\thefigure,\thetable}
% \changes{v0.7}{2018/01/17}{改为可完全展开的命令。}
% \changes{v0.7f}{2021/03/10}{直接调用 \tn{thechapter} 使得附录中的图表编号正确显示。}
% 重定义图表编号。
% \begin{macrocode}
\cs_set:Npn \thefigure
{ \@@_arabic:n { chapter } - \@@_arabic:n { figure } }
{ \thechapter - \@@_arabic:n { figure } }
\cs_set:Npn \thetable
{ \@@_arabic:n { chapter } - \@@_arabic:n { table } }
{ \thechapter - \@@_arabic:n { table } }
% \end{macrocode}
% \end{macro}
%
Expand Down

0 comments on commit d6e8908

Please sign in to comment.