I have a manuscript (my PhD Thesis, in fact) that uses Roman numerals for showing page numbers in the front matter and Arabic numbers for the page numbers in the main content.
Now I want to add an external page at the beginning of the document using the \includepdf
sentence from the pdfpages
package. It is the external cover of the book, so it shouldn't be taken into account for page numbering.
Ideally, what should happen is that this cover page (and also maybe blank page after it) should be numbered with its own counter, neither Roman nor Arabic. More precisely, what I've seen in some PDF documents that include the cover is that those initial external pages are labelled as C1 and C2 (for cover, I imagine).
Notice that I do not want the page numbers to be printed in the externally added pages, but just assign them a different page numbering (that is, a different page counter), so that the rest of the pages keep their old page numbers.
So, my question is: How can be this done in LaTeX?
Here it is a MWE:
\documentclass[11pt]{book}
\usepackage{pdfpages}
\usepackage{hyperref} %[pdfpagelabels] is default
\begin{document}
\includepdf{pdffile.pdf}
\frontmatter
\pagenumbering{roman}
Some front matter here
\newpage
And more
\mainmatter
\pagenumbering{arabic}
This is the main content
\newpage
And even more
\end{document}
When viewing the resulting PDF document, the first two pages are numbered as 1 and 2 (both in the document and also in the PDF viewer), and then the front matter starts, numbered as 'i', 'ii', etc. Then, the main matter starts and pages are numbered as 1, 2, etc. again.
In fact, the package hyperref
rises a warning because there are two pages labelled as '1', and two pages labelled as '2'.
So, how can I manage to have those first pages before the front matter numbered as 'C1', 'C2', etc. (at least in the PDF viewer)?