LaTex 在 Appendix 每一节标题中增加 Appendix 字样

1. 问题:

最近写 LaTex 文档的附录,需要 Appendix 的每一节标题改为 "Appendix A xxx", "Appendix B xxx" 式样
但使用如下命令

appendix

enewcommand{appendixname}{appendixname~Alph{section}}

没有成功,显示的标题仍然是 "A xxx", "B xxx"。效果如下:

2. 解决办法:

查看了刘海洋前辈的书籍 《LaTex 入门》,其第 131 页第一行提到了 appendix 宏包提供了一些额外的定制功能,于是顺着参考文献,去 CTAN 网站上查看了 appendix 宏包的使用指南。使用如下的命令:

usepackage[title]{appendix}
egin{document}
egin{appendices}
section{xxx}
附录内容
section{xxx}
...
end{appendices}
end{document}

最终实现了效果如下:

顺利完成任务! ()


3. 后续更新:

2020.12.5 update:在 IJCAI 和 AAAI 模板上都能起到作用,但似乎在 ICML 模板上无效,可能 icml 的 .sty 文件有相关限制。

原文地址:https://www.cnblogs.com/Gelthin2017/p/13648400.html