I would like to have my appendices labelled 'Appendix A', 'Appendix B', etc. However, when I use appendices in LaTeX (specifically llncs
document class, downloadable at ftp://ftp.springernature.com/cs-proceeding/llncs/llncs2e.zip), I instead get ''A Appendix', 'B Appendix' and so on. Is there any way to change that?
More specifically, this is my minimal working example:
\documentclass[envcountsame]{llncs}
\begin{document}
\appendix
\section{Appendix: Foo Bar} %I want this to appear as 'Appendix A: Foo Bar'
\end{document}
Best Answer
Here's a solution that uses only low-level LaTeX macros. (Copy the material starting with
\makeatletter
and ending with\makeatother
to your document's preamble.) The example below employs thellncs
document class, but works equally well with thearticle
document class.The trick, such as it is, consists of telling LaTeX to prefix the String "Appendix" to the section "number" when in a section header but not when cross-references to, say, "appendices A, B, and D" are needed.
If you want the appendix section header to read just "Appendix [some letter]" without a descriptive string, you can do so by typing
\section{}
or\section{\null}
-- after having executed\appendix
, naturally.