添加“附录” “A”之前论文目录
我需要在论文目录中的字母 A 之前插入“附录”一词,如下所示:
附录 A(附录 A 的标题),
但我使用的乳胶论文 cls 文件仅生成字母 A 后跟附录标题:
A (附录 A 的标题 A)
论文 cls 文件定义了一个“backmatter”命令,附录被视为一章。
\newcommand\backmatter{\appendix
\def\chaptermark##1{\markboth{%
\ifnum \c@secnumdepth > \m@ne \@chapapp\ \thechapter: \fi ##1}{%
\ifnum \c@secnumdepth > \m@ne \@chapapp\ \thechapter: \fi ##1}}%
\def\sectionmark##1{\relax}}
是否有对上述代码的简单修复,可以在附录 A 的目录中的字母 A 之前添加“附录”一词?有一个相关的问题,如何使“appendix”出现在Latex 中的 toc?,但答案似乎在这种情况下没有帮助。
I am required to insert the word Appendix before the letter A in my dissertation Table of Contents as follows:
Appendix A (title for appendix A)
but the latex thesis cls file I use generates only the letter A followed by the appendix title:
A (title for appendix A)
The thesis cls file defines a "backmatter" command and the appendix is treated as a chapter.
\newcommand\backmatter{\appendix
\def\chaptermark##1{\markboth{%
\ifnum \c@secnumdepth > \m@ne \@chapapp\ \thechapter: \fi ##1}{%
\ifnum \c@secnumdepth > \m@ne \@chapapp\ \thechapter: \fi ##1}}%
\def\sectionmark##1{\relax}}
Is there a simple fix to the above code that will add the word Appendix before the letter A in the TOC for Appendix A? There is a related question, How to make 'appendix' appear in toc in Latex?, but the answers did not appear to help in this case.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
appendix
包轻松实现您想要的目标。这是一个向您展示如何操作的示例文件。关键是调用包时的titletoc
选项。它采用您在\appendixname
中定义的任何值,默认值为Appendix
。输出看起来像
You can easily achieve what you want using the
appendix
package. Here's a sample file that shows you how. The key is thetitletoc
option when calling the package. It takes whatever value you've defined in\appendixname
and the default value isAppendix
.The output looks like