Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

附录部分的图表编号 #166

Closed
stone-zeng opened this issue Dec 31, 2020 · 4 comments
Closed

附录部分的图表编号 #166

stone-zeng opened this issue Dec 31, 2020 · 4 comments
Labels
Milestone

Comments

@stone-zeng
Copy link
Owner

fduthesis/source/fduthesis.dtx

Lines 4403 to 4412 in 6c32f74

% \begin{macro}{\thefigure,\thetable}
% \changes{v0.7}{2018/01/17}{改为可完全展开的命令。}
% 重定义图表编号。
% \begin{macrocode}
\cs_set:Npn \thefigure
{ \@@_arabic:n { chapter } - \@@_arabic:n { figure } }
\cs_set:Npn \thetable
{ \@@_arabic:n { chapter } - \@@_arabic:n { table } }
% \end{macrocode}
% \end{macro}

这导致附录中的图表编号有误,不是 A-1 而是 1-1

@stone-zeng stone-zeng added the bug label Dec 31, 2020
Repository owner locked and limited conversation to collaborators Dec 31, 2020
Repository owner unlocked this conversation Dec 31, 2020
@plong511
Copy link

fduthesis/source/fduthesis.dtx

Lines 4403 to 4412 in 6c32f74

% \begin{macro}{\thefigure,\thetable}
% \changes{v0.7}{2018/01/17}{改为可完全展开的命令。}
% 重定义图表编号。
% \begin{macrocode}
\cs_set:Npn \thefigure
{ \@@_arabic:n { chapter } - \@@_arabic:n { figure } }
\cs_set:Npn \thetable
{ \@@_arabic:n { chapter } - \@@_arabic:n { table } }
% \end{macrocode}
% \end{macro}

这导致附录中的图表编号有误,不是 A-1 而是 1-1

我现在也遇到了这个问题,附录里的表格编号不对。该如何解决?这个dtx文件是怎么提取出来的呢?

@stone-zeng
Copy link
Owner Author

临时的 work around 是:

\appendix

\renewcommand{\thefigure}{\Alph{chapter}-\arabic{figure}}
\renewcommand{\thetable}{\Alph{chapter}-\arabic{table}}

\chapter{附录}

...

% \appendix 要在 \backmatter 之前
\backmatter

@zepinglee
Copy link

咋不用 \thechapter

@stone-zeng
Copy link
Owner Author

咋不用 \thechapter

我好像又智障了……

@stone-zeng stone-zeng added this to the v0.8 milestone Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants