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!

1

1 Answer 1

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
  • 2
    \pagenumbering should be preceded by \cleardoublepage; the initial one doesn't need it because it's implicit in \begin{document}.
    – egreg
    Mar 19, 2014 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, 2014 at 12:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .