Skip to content

附录部分有问题 #19

@TianYaDY

Description

@TianYaDY

附录部分建议进行修改成下面这样,不然图片标号计数器会继承之前章节的。

% 切换到附录模式
\appendix

% 添加附录总标题(不编号,但添加到目录)
\chapter*{附录}
\addcontentsline{toc}{chapter}{附录}

% 设置页眉页脚
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[C]{\songti\xiaowu 第 \thepage 页}
\fancyhead[L]{\songti\xiaowu 上海工程技术大学硕士学位论文}
\fancyhead[R]{\songti\xiaowu \quad 附录 }
}
\pagestyle{plain}

% 重置计数器并修改编号格式
\setcounter{section}{0}
\setcounter{figure}{0}
\setcounter{table}{0}
\setcounter{equation}{0}

% 修改编号格式为附录字母形式
\renewcommand{\thesection}{\Alph{section}}
\renewcommand{\thefigure}{\Alph{section}-\arabic{figure}}
\renewcommand{\thetable}{\Alph{section}-\arabic{table}}
\renewcommand{\theequation}{\Alph{section}-\arabic{equation}}

% 之后使用section创建各附录
\section{附录A标题} % 会显示为"A 附录A标题"

% 附录B
\section{附录B标题}

% 如此类推...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions