I want to have two sets of page numbers (P and p) in my document. The first one (P) is global, the second one (p) resets to 1 at some predefined points.
So, the document will look like,
Text. In this page the page number (p, second one) is reset.
To get the total page count a label in the last page or the lastpage package (http://www.ctan.org/pkg/lastpage) can help me. And that is not the subject of this question.
The problem is with the second counter. I can use chappg (http://www.ctan.org/pkg/chappg) with noauto option. But I loose the global page counter P. Moreover, the (sub) total number of pages in that group has to be manually set.
I understand that if I write a set of macros with a new counter (my@local@page), reset it at my predefined points, label the last page in a group (label names will have to be distinct), perhaps I can achieve my goal. But that requires at least half a day. Which I do not have at this moment.
I was wondering if you can suggest something readily usable.
\documentclassare you using? Do you have any package restrictions?
\clearpageissued before the command that changes the page numbering? If so, it would make things much easier.
pdfpagepackage might help you.