Grab Value of Page Counter
After being disappointed that this similar question was marked as a duplicate, I sought out and found a solution that fits my situation. My answer is more fitting to the other question, but I will leave it here, because I cannot add an answer to a question marked as "duplicate".
Another route that does not involve references is to use counters themselves.
I recently needed to solve an issue with a multilingual document having multiple cover pages
- One true physical cover
- Internal cover pages per language
Because all cover pages are created with the \maketitle command, I needed only the first \maketitle (the true cover page) to reset the page count to 1 (such that page 1 is following the cover page--the actual contents of the text). The solution was to:
Create a custom counter
\newcounter{runningpagecounter}
Set this counter within the \maketitle command just before resetting the page count to 1
\newcommand{\maketitle}[1]{%
% WHATEVER CODE
{\Huge #1}
\setcounter{runningpagecounter}{\value{page}
\setcounter{page}{1}
}%
For internal documents (units within the document that call \maketitle), you can do the following: After calling \maketitle, which will reset the page counter to 1, you just reset the page counter again to your custom counter that grabbed the number before it was reset:
\setcounter{page}{\value{runningpagecounter}}