# Different page numbering in appendix?

How can I use an independent page numbering in the appendix, either with Roman or Arabic numberals as page numbers?

(I.e. the first page of the appendix should start again with 1, as it is often done for the introduction and the main part of a long document, then typically using Roman numerals for the introduction.)

-
@85: Which documenclass do you use? Most of them are providing the commands \frontmatter, \mainmatter and \backmatter to structure the main document. –  Marco Daniel Sep 8 '11 at 15:03
I'm using scrbook. And \backmatter before the appendix. –  fuenfundachtzig Sep 8 '11 at 17:00
@85: Have a look at the scrguide at page 100 or the English one scrguien page 80. –  Marco Daniel Sep 8 '11 at 17:10

To (re)start the page numbering, you need to use the command \pagenumbering{}. In all LaTeX classes I'm aware of, the argument of this command can be arabic, roman, Roman, alph, or Alph.

To automate the process of having the page numbering restart when the document gets to the Appendix (or Appendices), you could include the following instruction in the preamble (using, for instance, lowercase-roman numerals):

\let\origappendix\appendix % save the existing appendix command
\renewcommand\appendix{\clearpage\pagenumbering{roman}\origappendix}

-
You need also a \clearpage before \appendix. –  egreg Sep 8 '11 at 10:17
Thanks, egreg! I've inserted the \clearpage instruction. –  Mico Sep 8 '11 at 10:49
Using this including the suggested \pagenumbering{arabic}\renewcommand{\thepage}{App.~\arabic{page}} from a comment below now. –  fuenfundachtzig Sep 27 '11 at 7:31
i suggest using \pagenumbering infront of \clearpage, this way I can avaoid destination with the same identifier (name{page.1}) has been already used, duplicate ignored<to be read again> \relax l.7 \clearpage [1] when I use hyperref (note: also be sure to give your titlepage a different pagenumbering than your matter) –  ted Aug 3 '13 at 10:18
@ted - Did the OP mention or ask about hyperref? My answer was based on a lack of mention of hyperref... –  Mico Aug 3 '13 at 10:36

Use the \pagenumbering command:

\documentclass{article}

% only for testing
\usepackage[english]{babel}
\usepackage{blindtext}

\begin{document}
\blinddocument

\clearpage
\appendix
\pagenumbering{arabic}
\blinddocument

\clearpage
\pagenumbering{Roman}
\blinddocument
\end{document}


This command changes the numbering an resets the counter to 1, even if you’re switching vom arabic to arabic numbering.

-
This won't work with \arabic numbering if hyperref is used; but using two identical page identifiers is bad practice anyway. –  egreg Sep 8 '11 at 10:23
@egreg: Maybe something like A.n is possible, n being the page number? –  fuenfundachtzig Sep 8 '11 at 11:27
Yes: doing \pagenumbering{arabic}\renewcommand{\thepage}{A.\arabic{page}} keeps hyperref happy. –  egreg Sep 8 '11 at 12:12
A page numbering style such as "A.\arabic{page}" might become very confusing if you have appendices numbered A, B, and C. To avoid any confusion about whether "A" pertains to "Appendix Section A" or to all appendix sections, it be better to have \renewcommand{\thepage}{App.~\arabic{page} instead... –  Mico Sep 8 '11 at 14:29

I found that making a simple new command (from the suggestions listed here) works pretty well:

\newcommand{\NewAppendix}[1]{
% put appendix on a new page
\clearpage

% reset the page counter
\pagenumbering{arabic}

% set the format for the appendix page number
\renewcommand{\thepage}{\thesection - \arabic{page}}

% set the appendix name
\section{#1}
}


You could leave out the \section{#1} part if you wanted to just setup for the new appendix. For example, when the \section{} command is in a file that you're going to \input{} or \include{} for the appendix.

-