Take the 2-minute tour ×
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.

When I am using the \appendix it is automatically naming the Appendix as Appendix A, A.1, A.2 etc.

Is there a way to change it to Appendix I, I.1, I.2, II.1, etc?

here is my current appendix commands:

\appendix
\include{AppendixA}
\cleardoublepage
\include{AppendixB}
\cleardoublepage
share|improve this question
1  
the code to change the appendix (= chapter) number is in the question Roman chapter numbers cause overfull hbox in titletoc-ToC, which may have some other useful information when the width of the numbers expands beyond preset limits. –  barbara beeton Mar 1 '13 at 21:34

2 Answers 2

This depends on your document class. If it has \chapters, then you can use

\renewcommand{\thechapter}{\Roman{chapter}}

otherwise (if it the highest sectional unit is \section), use

\renewcommand{\thesection}{\Roman{section}}

after \appendix. Combining this into the document preamble (not a bad thing), you could use

\let\oldappendix\appendix
\renewcommand{\appendix}{%
  \oldappendix%
  \renewcommand{\the<unit>}{\Roman{<unit>}}}%

where <unit> defines the highest section unit in your class (say chapter or section).

share|improve this answer

With the standard LaTeX classes, KoMa-script ones and also memoir, the definition can be patched quite safely (before hyperref, if this package is loaded):

\usepackage{etoolbox}
\makeatletter
\patchcmd{\appendix}{\@Alph}{\@Roman}
  {}{\@latex@warning@no@line{\protect\appendix\space couldn't be patched}
\makeatletter

If the patch is not successful, which LaTeX will warn you about, it may be because the class already loads hyperref (which is not recommended, actually); in that case, try

\usepackage{etoolbox}
\makeatletter
\patchcmd{\HyOrg@appendix}{\@Alph}{\@Roman}
  {}{\@latex@warning@no@line{\protect\appendix\space couldn't be patched}
\makeatletter

because this is the "original" command as saved by hyperref.

share|improve this answer

Your Answer

 
discard

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.