Meer, Hans van der <mailto:[email protected]>
17. Januar 2016 um 19:03
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?
\definepagestate[hans]
\starttext
One\setpagestate[hans][one]
\page[+2]
Two\setpagestate[hans][two]
Three\setpagestate[hans][three]
\blank
\ifnum0\pagestaterealpage{hans}{two}=0\pagestaterealpage{hans}{one}
The references are on the same page.
\else
The references are on different pages.
\fi
\blank
\ifnum0\pagestaterealpage{hans}{two}=0\pagestaterealpage{hans}{three}
The references are on the same page.
\else
The references are on different pages.
\fi
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________