论文如果要增加附录,章节、页码重新编号
\newpage
%% 页数从1开始
\setcounter{page}{1}
%% 重新设置节编号
\renewcommand\thesection{\Alph{section}}
%% 重新计数
\setcounter{section}{0}
\setcounter{theorem}{0}
\setcounter{definition}{0}
\setcounter{figure}{0}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\numberwithin{theorem}{section}
\numberwithin{definition}{section}
\numberwithin{lemma}{section}
\numberwithin{equation}{section}
\numberwithin{figure}{section}
关于节编号 \Alph{}表示改为 大写字母,其他可改见链接
另外在写论文的时候发现,使用 \renewcommand\thesection{\Alph{section}} 之后仅只有目录改了,但是正文部分的节标题没改。
e.g.,
目录里是
A 附录
正文里还是
第一节 附录
所以,我又添加了一句
\titleformat{\section}{\textsectionfont}{\Alph{section}.}{1em}{}
这是在.CLS文件里找的定义,修改了一下。用起来没问题,但是不知道有没有其他更好的方法。