From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72557 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: referencing Date: Sun, 20 Nov 2011 19:42:02 +0100 Message-ID: References: <34E24576-0864-4263-B44A-711118D75BEB@xs4all.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1321814539 2952 80.91.229.12 (20 Nov 2011 18:42:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2011 18:42:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 20 19:42:15 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 1RSCLH-00047h-En for gctc-ntg-context-518@m.gmane.org; Sun, 20 Nov 2011 19:42:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ACA89CB107; Sun, 20 Nov 2011 19:42:14 +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 ZltcpexLdgrc; Sun, 20 Nov 2011 19:42:11 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52256CB0F6; Sun, 20 Nov 2011 19:42:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 062D8CB0F6 for ; Sun, 20 Nov 2011 19:42:09 +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 RppeL+KHm4n1 for ; Sun, 20 Nov 2011 19:42:07 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id E9CD7CB0F3 for ; Sun, 20 Nov 2011 19:42:06 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAKIg5ek000637 for ; Sun, 20 Nov 2011 19:42:05 +0100 Original-Received: by bke17 with SMTP id 17so7352369bke.14 for ; Sun, 20 Nov 2011 10:42:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=m0Dfzf6Ydx+ZM6mAB6fpbKJBKSoWdaTFYDG3nC6+77I=; b=j6TLLbftVha8EW59nUhlhy99heWFZdeaKnGlK2AV7RPK+RqAxy6cczbuF9Qxfc/WnN Og6d1ENkzsdx3Mu20LuCR+DuL6jucTZJJH6dk8W2eFKIGwrzkOqpJf5ZKUX7qaBX6M5j BtkbrnSBW+esglnjH7kknJX+hRZE2GAw5plVw= Original-Received: by 10.204.157.151 with SMTP id b23mr11424428bkx.30.1321814525382; Sun, 20 Nov 2011 10:42:05 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFC6A0.dip.t-dialin.net. [87.175.198.160]) by mx.google.com with ESMTPS id x27sm12981350fag.14.2011.11.20.10.42.03 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Nov 2011 10:42:04 -0800 (PST) In-Reply-To: <34E24576-0864-4263-B44A-711118D75BEB@xs4all.nl> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bFXuG5W3 - 6995461ba62c - 20111120 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:72557 Archived-At: Am 20.11.2011 um 18:46 schrieb Hans van der Meer: > I have the following question about references. > > Using for example \at one can say somehting like "see on \at{page}[ref] for the figure.. > But when the figure is one the same page it seems a bit superfluous to reference to it. In the same manner it is a bit of an overkill to put a hyperlink to the page where this link resides itself. > > It is clear that ConTeXt knows if it is on the same page as is referenced, because then a link is coloured with contrastcolor instead of color. > > Now the question: how easy/difficult is it to either suppress such an \at-reference or switch between chosen alternate texts for links on or off the same page as the referenced item? \def\SamePage[#1]% {\doifreferencefoundelse{#1} {\ifnum\referencepagestate=1 \unknown % reference is on the same page \else \at[#1]% \fi} {\donothing}} \starttext \pagereference[one] \pagereference[two] One: \SamePage[one] \page Two: \SamePage[one] \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 ___________________________________________________________________________________