From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66568 Path: news.gmane.org!not-for-mail From: Daniel Schopper Newsgroups: gmane.comp.tex.context Subject: compare locations of two pagereferences Date: Wed, 02 Mar 2011 18:05:24 +0100 Message-ID: <4D6E78D4.3080607@aon.at> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1299085560 1358 80.91.229.12 (2 Mar 2011 17:06:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 17:06:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 02 18:05:55 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PupUl-0000q2-DI for gctc-ntg-context-518@m.gmane.org; Wed, 02 Mar 2011 18:05:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA048CAA91; Wed, 2 Mar 2011 18:05:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bSz1p4QRRwzy; Wed, 2 Mar 2011 18:05:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0FC51CAA7B; Wed, 2 Mar 2011 18:05:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 79C4ACAA7B for ; Wed, 2 Mar 2011 18:05:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id G56DYOG6lOK0 for ; Wed, 2 Mar 2011 18:05:25 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 6BEC4CAA70 for ; Wed, 2 Mar 2011 18:05:25 +0100 (CET) Original-Received: from email.aon.at (smtpout04.highway.telekom.at [195.3.96.117]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p22H5OnD012998 for ; Wed, 2 Mar 2011 18:05:25 +0100 Original-Received: (qmail 10535 invoked from network); 2 Mar 2011 17:05:24 -0000 Original-Received: from 178-190-78-74.adsl.highway.telekom.at (HELO Daniel-Schoppers-iMac.local) ([178.190.78.74]) (envelope-sender ) by smarthub94.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 2 Mar 2011 17:05:24 -0000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=195.3.96.117; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEeh5ogd - 73ef6c644fab - 20110302 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66568 Archived-At: 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 ___________________________________________________________________________________