如何调整附录环境中的编号?
我的 Latex 书中有以下结构:
1)主文件
...
\include{chapter1}
\include{chapter2}
\include{chapter3}
...
2)chapterN.tex
\input{file1}
\input{file2}
\input{file3}
\begin{appendices}
\input{appendix_1_chapterN}
\input{appendix_2_chapterN}
\end{appendices}
结果是第 1 章末尾的附录(例如)被命名为“.1”和“.2”,当我希望它们的名称为“1.A”和“1.B”。
任何帮助表示赞赏。
I have the following structure in my Latex book:
1) main file
...
\include{chapter1}
\include{chapter2}
\include{chapter3}
...
2) chapterN.tex
\input{file1}
\input{file2}
\input{file3}
\begin{appendices}
\input{appendix_1_chapterN}
\input{appendix_2_chapterN}
\end{appendices}
The result is that the appendixes at the end of chapter 1 (for instance) is named ".1" and ".2", when I would like them to be name "1.A" and "1.B".
Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
附录包的文档中包含了这个问题的答案,您正在使用的附录环境需要该文档: ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/appendix/appendix.pdf
您问题的答案是您正在使用章节附录的附录环境,它是为章节附录设计的。要实现章节附录的目标,请使用 subappendices 环境,如下所示:
The answer to this is covered in the documentation to the appendix package, which is required for the appendices environment that you are using: ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/appendix/appendix.pdf
The answer to your question is that you are using the appendices environment for section appendices, where it is designed for chapter appendices. To achieve your goal of section appendices, use the subappendices environment instead as shown below: