Am 02.03.2011 um 18:05 schrieb Daniel Schopper: > Dear all, > how can one compare the locations of two pagereferences for conditional > processing? I tried it with this (mkiv, 2011.01.10):
There is nothing predefined in the core but it’s not so hard to write your own command: \def\doifelsesamepagereference#1#2% {\doifelse {\doifreferencefoundelse{#1}{\currentreferencepage}{-}} {\doifreferencefoundelse{#2}{\currentreferencepage}{+}}} \starttext A\pagereference[page:a]\par B\pagereference[page:b] \page[yes] C\pagereference[page:c] A+B: \doifelsesamepagereference{page:a}{page:b}{YES}{NO} B+C: \doifelsesamepagereference{page:b}{page:c}{YES}{NO} \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________