如何使“附录"出现在 Latex 的目录中? [英] How to make 'appendix' appear in toc in Latex?

查看:13
本文介绍了如何使“附录"出现在 Latex 的目录中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使附录"一词出现在目录中?现在 toc 看起来像这样:

How to make word 'appendix' appear in the table of contents? Right now toc looks like this:

1 ......  
2 ......  
.  
.  
A .....  
B ..... 

我希望它是:

1 ......  
2 ......  
.  
.  
Appendix A .....  
Appendix B ..... 

我的latex源文件结构是这样的:

My latex source file structure is like this:

egin{document}  
	ableofcontents  
include{...}  
include{...}  
appendix  
include{...}  
include{...}  
end{document}  

推荐答案

这可能通过使用 附录包,或memoir 类.

This is probably most easily achieved by using the appendix package, or the memoir class.

如果您不想使用预打包的解决方案,则必须破解切片命令.当我需要为我的论文,我克隆了 report 类,并编辑直到我完成边际夫人高兴.您正在寻找的是addcontentsline 宏的定义.

If you don't want to use a prepackaged solution, you'll have to hack the sectioning commands. When I needed to do this for my dissertation, I cloned the report class, and edited until I made the margins lady happy. What you're looking for is the definition of the addcontentsline macro.

这篇关于如何使“附录"出现在 Latex 的目录中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆