12

what I want to achieve is this continuous numbering with roman numbers:

I, II, III, 1, 2, 3, n, IV, V

But using:

\pagenumbering{Roman} 
\pagenumbering{Arabic}
\pagenumbering{Roman}

Returns this:

I, II, III, 1, 2, 3, n, I, II, III

Help please!

Eich
  • 123
  • 1
    Related/duplicate: http://tex.stackexchange.com/questions/121088/pagenumberingroman-does-not-work-after-it-is-set – egreg Mar 19 '14 at 11:40

1 Answers1

19

What we do is save the page counter before exiting Roman pages the first time, and reinstate that page counter when (i.e., after) re-entering Roman page numbering later in the document.

\documentclass{article}
\usepackage{lipsum}
\newcounter{savepage}
\begin{document}
\pagenumbering{Roman} 
\lipsum[1-15]

\cleardoublepage
\setcounter{savepage}{\arabic{page}}
\pagenumbering{arabic}
\lipsum[1-20]

\cleardoublepage
\pagenumbering{Roman}
\setcounter{page}{\thesavepage}
\lipsum[1-20]
\end{document}
  • 2
    \pagenumbering should be preceded by \cleardoublepage; the initial one doesn't need it because it's implicit in \begin{document}. – egreg Mar 19 '14 at 11:41
  • Thank you both. The \cleardoublepage also solved my problem concerning some wild tables (which it was supposed to apparently). – Eich Mar 20 '14 at 12:09