I've searched two hours now for a solution on the net, but all that was coming up so far, was the shift of page numbering.
I try to integrate worksheets into another latex document which results in a book mixed of information and sheets. Now I want the pages in the book numbered regularly for what I'm using the usual page numbering.
The worksheets however can consist of multiple pages and should therefor have an own page numbering which leaves the page numbering of the surrounding book untouched. Which page number is shown on the sheet shall be changed by using page styles.
So for example:
Chapter 1 - Text five pages long (page number 1-5)
Sheet 1 - 2 pages long (page number 1-2)
Sheet 2 - 4 pages long (page number 1-4)
Chapter 2 - Text 12 pages long (5 pages text and 6 pages sheets before, so these pages should be numbered 12-24)
What I did so far is that I created a new environment for the worksheets and reset the page number whenever this new environment is used:
\newenvironment{SHEET}
{\setcounter{page}{1}\newpage\pagestyle{SHEETpagestyle}}
{\newpage\pagestyle{fancy}}
Result:
Chapter 1 - Text five pages long (page number 1-5)
Sheet 1 - 2 pages long (page number 1-2)
Sheet 2 - 4 pages long (page number 1-4)
Chapter 2 - Text 12 pages long (1-12 instead 12-24)
All I should have to do (naively thinking) is replacing the page counter within this SHEET-environment by an extra defined page counter which works exactly like the other, like:
\newenvironment{SHEET}
{\setcounter{sheetpage}{1}\newpage\pagestyle{SHEETpagestyle}}
{\newpage\pagestyle{fancy}}
Is that possible? If yes, how can I define the sheetpage counter which increases on every new page and if not, how can I achieve this goal with another solution?