1. 问题:

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

\appendix
\renewcommand{\appendixname}{\appendixname~\Alph{section}}

没有成功,显示的标题仍然是 "A xxx", "B xxx"。效果如下:
LaTex  在 Appendix 每一节标题中增加 Appendix 字样

2. 解决办法:

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

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

最终实现了效果如下:
LaTex  在 Appendix 每一节标题中增加 Appendix 字样

顺利完成任务! ()


3. 后续更新:

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

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
  • 2021-08-11
  • 2022-12-23
  • 2022-02-11
猜你喜欢
  • 2022-12-23
  • 2022-02-22
  • 2021-10-02
  • 2022-12-23
  • 2021-07-07
  • 2021-06-25
  • 2021-11-06
相关资源
相似解决方案