Dear all,
how can one compare the locations of two pagereferences for conditional processing? I tried it with this (mkiv, 2011.01.10):

\starttext

\pagereference[page:a]bla \pagereference[page:b]bla
\at[page:a] % 1
\at[page:b] % also 1
\doifsamestringelse{\at[page:a]}{\at[page:b]}{same page}{different page} % yet, the else-branch gets executed

\stoptext

Of course this is clumsy, but although I tried to peek into strc-ref I couldn't quite sort out how to directly access the results of \at.
Thanks
Daniel
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

Reply via email to