Is there a recommended way to change the formatting of page numbers in references in LaTeX, i.e., what \pageref outputs? I looked at the kernel source, as well as cleveref.sty and varioref.sty and others. I guess I could hack something up, but it's unclear to me what, if any, methods are recommended for this.
Reason: For TUGboat, we run articles in draft mode with page numbers starting at 901. Frank (Mittelbach) suggested printing such page numbers as "?1", "?2", ..., in order to make it obvious that the page numbers are not real and should not be cited (which has happened).
It is easy for me to do this in the headers and footers, since ltugboat.cls (that is, tugboat.dtx) already redefines those; instead of simply typesetting \thepage, I can run a macro that checks if the value is >900 and do the right thing. No problem. Similarly for the table of contents, since ltugboat also already redefines \l@section.
Because this is for TUGboat, I cannot actually load cleveref or varioref or their myriad relations; it would be much too fragile. I need to make the change in my own macro, as non-invasive as possible.
Here is an example (output below). I didn't bother with an index, etc., though the same question applies to wherever LaTeX typesets the page number.
\documentclass[draft]{ltugboat}
\begin{document}
\tableofcontents
\section{Introduction}
\label{intro} Reference to page~\pageref{intro}.
\end{document}
If you run this, you won't see the "?1" in the header or toc unless you use the unreleased tugboat.dtx->ltugboat.cls from tugboat svn. But that's not important; my question is about the \pageref. I want the "901" to also be "?1". Thanks in advance ...