Thanks Wolfgang. I am afraid, however, your answer inspires me to a subsequent question.
In order to customize the reference myself my idea is something along the line of:
\def\myatpage[#1]{ \scratchcounter=\at[#1]\relax\ifnum=\pagenumber etcetera.
But this gives an error, as dus \expanded{\at[#1]}, as does \expandafter\scratchcounter=
The error is Missing number, treated as zero..
Do you have a hint how to proceed?
Hans van der Meer
On 17 Jan 2016, at 17:42, Wolfgang Schuster mailto:schuster.wolfgang@gmail.com> wrote:
Meer, Hans van dermailto:H.vanderMeer@uva.nl
17. Januar 2016 um 16:58
Defining \pagereference[xyz] en calling this some pages later with \atpage[xyz] I get as reference "at a previous page" (perhaps not exactly, the typesetting is done in dutch).
The english text is “on a preceding page”.
This an unwanted result, that previous page is 7 pages before.
The test is still true before “on *a* preceding page” is not the same as “on *the* preceding page”.
How can I restrict this to either "on this page" or to the exact number of the page in question?
You can print the number with \at[<LABEL>].
Wolfgang