TOC 显示“第 A 章”,但我想要“附录 A”

TOC 显示“第 A 章”,但我想要“附录 A”

我正在使用大学提供的 Latex 论文模板撰写论文,目前附录存在两个问题:(1) 在目录 (toc) 中,附录被命名为“第 A 章”、“第 B 章”等,而我希望它们显示为“附录 A”、“附录 B”等(本论坛之前讨论过的所有解决方案均不起作用)。(2) 文档正文中标题为“附录 [信件]”的每个附录页面上的页码都从其他地方使用的右上角格式移到了底部中央。我觉得这两个问题是相关的,这就是我一起问它们的原因,但我非常乐意分别就其中一个问题获得帮助。

我的附录定义在一个名为“thesisU.cls”的单独文档中,我使用“thesisU”作为我的文档类。我还有一个名为 appendix.tex 的单独文档,其中我调用了 \appendix。.cls 文档中的附录代码如下:

% Redefine appendix to print Appendix []. ... page # in table of contents.
\newcommand{\appnumberline}[1]{\advance\hangindent\@tempdima \hbox{Appendix #1. }}
\renewcommand\appendix{\par
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \renewcommand\@chapapp{Appendix}
 \renewcommand\thechapter{\Alph{chapter}}
% Redefine @chapter  so that appnumberline (ratherline) is used.
 \def\@chapter[##1]##2{\ifnum \c@secnumdepth >\m@ne
  \refstepcounter{chapter}
  \typeout{\@chapapp\space\thechapter}
  \addcontentsline{toc}{chapter}{\protect
  \appnumberline{\thechapter}##1} \else 
  \addcontentsline{toc}{chapter}{##1}\fi
  \chaptermark{##1}

我知道由于模板的多文件特性,这并不完全可编译,但如果能给出关于如何解决问题的指示,我将非常感激。

相关内容