TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the document class scrartcl and appendix. This currently results in a letter instead of a number for section enumeration in the TOC and section title ("A My Code Listing"). I need to change this to "Appendix A My Code Listing", i.e. add the word "Appendix" to the section title.

I have found a manual workaround on http://web.reed.edu/cis/help/latex/thesis#appendices but would like to know if there is a way to change this automatically.

share|improve this question
should it as "Appendix ..." in the table of contents, too? – Herbert Jan 7 '11 at 13:43
Actually, there should be a seperate table of contents for the appendices. But I'm not into LaTeX so much, so I cannot make much of tex.stackexchange.com/questions/8211/list-of-appendices. – None Jan 7 '11 at 13:53


\section{foo} bar

\gdef\thesection{Appendix \Alph{section}}
\section{foo} bar
\section{foo} bar

share|improve this answer
One should note, that this also adds “Appendix” to every reference to an appendix (e.g. in the toc or via \ref). – Caramdir Jan 7 '11 at 16:55

KOMA-Script has a mechanism for this. If you use scrreprt or scrbook, then you only need to add the appendixprefix option to \documentclass. For scrartcl, there is a description in the manual (section 16.3 “Expert Commands”): Just add


    \csname the##1\endcsname\autodot\enskip}

to your preamble.

share|improve this answer
The appendixmore trick does not appear to be working in recent version of KOMA (3.19a). – Artem Pelenitsyn Jun 16 at 16:53

You should use \KOMAoptions{appendixprefix=true}. This behavior is documented in the KOMA-Script guide, as scrartcl is part of KOMA-Script. The \appendixmore-trick is not needed.

share|improve this answer
Unfortunately, this doesn't work with scrartcl (version 2011/06/16 v3.09a): ! Package scrkbase Error: unknown KOMA option 'appendixprefix'. This is even documented in the manual, as Caramdir pointed out. – diabonas Feb 17 '12 at 18:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.