如何使“附录"出现在Latex的toc中? [英] How to make 'appendix' appear in toc in 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 ......
.
.
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屋!