问题描述
我需要在我的论文目录中的字母A之前插入附录一词,如下所示:
I am required to insert the word Appendix before the letter A in my dissertation Table of Contents as follows:
附录 A(附录 A 的标题)
Appendix A (title for appendix A)
但我使用的乳胶论文 cls 文件只生成字母 A 后跟附录标题:
but the latex thesis cls file I use generates only the letter A followed by the appendix title:
A(附录 A 的标题)
A (title for appendix A)
论文 cls 文件定义了一个backmatter"命令,附录被视为一章.
The thesis cls file defines a "backmatter" command and the appendix is treated as a chapter.
ewcommandackmatter{appendix
defchaptermark##1{markboth{%
ifnum c@secnumdepth > m@ne @chapapp hechapter: fi ##1}{%
ifnum c@secnumdepth > m@ne @chapapp hechapter: fi ##1}}%
defsectionmark##1{
elax}}
上面的代码是否有一个简单的修复方法,可以在附录 A 的目录中的字母 A 之前添加单词附录?有一个相关的问题,如何使附录"出现在乳胶中的 toc ?,但在这种情况下,答案似乎没有帮助.
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.
推荐答案
您可以使用 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 the titletoc
option when calling the package. It takes whatever value you've defined in appendixname
and the default value is Appendix
.
documentclass{report}
usepackage[titletoc]{appendix}
egin{document}
ableofcontents
chapter{Lorem ipsum}
section{Dolor sit amet}
egin{appendices}
chapter{Consectetur adipiscing elit}
chapter{Mauris euismod}
end{appendices}
end{document}
输出看起来像
这篇关于添加“附录"“A"之前论文目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!