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

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

问题描述

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

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

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

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

我希望这样:

1 ......
2 ......
.
.
附录A .....
附录B .....

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

我的乳胶源文件结构是这样的:

My latex source file structure is like this:

\ begin {document}
\ tableofcontents
\ include {...}
\ include {...}
\ appendix
\ include {...}
\ include {...}
\ end {document}

\begin{document}
\tableofcontents
\include{...}
\include{...}
\appendix
\include{...}
\include{...}
\end{document}

推荐答案

使用附录 包,或内存类.

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的toc中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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