tags:

views:

411

answers:

4

I am editing a 100+ page document in latex, document class is "book". The first few pages of the document have roman page numbers, the rest have arabic page numbers starting with one. I.e. the document has page numbers i-iv, followed by pages 1-120. However, want I want is the pages to be: vii-ix, followed by pages 1-120. (reason: I am inserting some other PDF pages preceding the PDF ultimately generated by latex, and this obviously leads to all following page numbers beeing higher).

So how can I increase the roman page numbers to start from a higher number (but not increase the arabic page numbers at the samee time)?

Thank you.

+1  A: 

Hello, use \setcounter{page}{7} after \begin{document} and if necessary \setcounter{page}{1} when the arabic page numbers start.

Rupert Jones
+3  A: 

You don't need to use \setcounter{page}{1} when arabic numbers start. This happens automatically:

\documentclass{book}
\begin{document}
\pagenumbering{roman}
\setcounter{page}{3}
a
\newpage
\pagenumbering{arabic}
b
\end{document}

has page iii followed by page 1.

Ramashalanka
Rupert Jones, Ramashalanka -- thanks a bunch, it works!
gojira
@gojira don't forget that you are suppose to mark your accepted answer
mropa
A: 
Charles Stewart
thanks, but I am already using the pdfpages package! my question, which is now solved (sorry I don't know how to mark the accepted answer) was more about how to change the pagenumbers following the included PDF.Context looks very cool, I wish I had known about it earlier. Will consider using it for my next big document.
gojira
Charles Stewart
@gojira: Cf. http://meta.stackoverflow.com/questions/5234/accepting-answers-whats-it-all-about/5235#5235
Charles Stewart
A: 

The book (and report) classes define \frontmatter, \mainmatter, and \backmatter, to switch the page style and handling of sectioning. In particular \frontmatter switches the page numbers to roman, and \mainmatter to arabic.

To account for unprinted pages at the beginning, you still have to use \setcounter{page}{7} before your front matter content.

Damien Pollet