From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65321 Path: news.gmane.org!not-for-mail From: Robert Blackstone Newsgroups: gmane.comp.tex.context Subject: Re: Conditional cross references to floats Date: Tue, 18 Jan 2011 11:15:53 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1295345775 16014 80.91.229.12 (18 Jan 2011 10:16:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 18 Jan 2011 10:16:15 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 18 11:16:10 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 1Pf8bi-0004Bc-QG for gctc-ntg-context-518@m.gmane.org; Tue, 18 Jan 2011 11:16:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2AC5CA9F2; Tue, 18 Jan 2011 11:16: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 KlqgkI8QprH2; Tue, 18 Jan 2011 11:16:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16C28CA9EB; Tue, 18 Jan 2011 11:16:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B4256CA9EB for ; Tue, 18 Jan 2011 11:16:05 +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 4n3MOlzi5YZj for ; Tue, 18 Jan 2011 11:15:54 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id D5A8ACA9E6 for ; Tue, 18 Jan 2011 11:15:54 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0IAFsRC032190 for ; Tue, 18 Jan 2011 11:15:54 +0100 Original-Received: by fxm12 with SMTP id 12so7141684fxm.14 for ; Tue, 18 Jan 2011 02:15:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=lxVBQCaW1wd7RBc89vTpW7a1AErCk8rTxPBn35A45YU=; b=I5zlJzJSTTE5fDQa910GrNx6JnVyO0cWSJeT4pk8HRmnCcjhCcSasw9mC8RsWJ6Phy K3M0hcGQ7iDSR4TjtTduk832WDFpGPnT+2jIBzlA4zc+zXn2Z8aR6xFjgAXZIQQqWe6h PbT9UfKVwKCaz0nc6rr52W2JsAUv8lHkPBzqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=R7qhdHSzF8xI0I0lcdG/KEH2E42eXvMhbL3ygehLKdZfHftWEriwBbLq8l1NIPebFA Mg5AaWiD0+UTQE2+JOb+tkPBp7I7w57QMHU/UzE9s5SNO5I4HDQ6GVXigxMT02url6sX LVPev69dFrmJNKS6BX/agnKBH8UcsDun46FLI= Original-Received: by 10.223.106.129 with SMTP id x1mr5958596fao.13.1295345753923; Tue, 18 Jan 2011 02:15:53 -0800 (PST) Original-Received: by 10.223.104.19 with HTTP; Tue, 18 Jan 2011 02:15:53 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.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: 0eDUWfSOU - 3600d3666637 - 20110118 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:65321 Archived-At: On Mon, 17 Jan 2011 16:22:03 +0100 Wolfgang Schuster wrote: > Am 16.01.2011 um 20:58 schrieb Robert Blackstone: > >> Hi all, >> >> I wonder if it is already possible to perform the following task: >> >>.... can one make a sort of >> conditional reference that only mentions the page if it is not the >> present page? > > ConTeXt has a \atpage and a \somewhere command but none of them > can be used to omit the reference when the float and the reference > are on the same page but it?s not impossible. > > As you can see from this example: > > ..... >Wolfgang Thank you, Wolfgang. The code you gave, while not a fool-proof tool, works quite well. I expect I will be able to use it when figures will not be pushed away too far from their intended place in the text. I have changed "above" and "below" to "the previous page" and "the next page" respectively but that is a detail. It will still require careful proofreading anyway. Kind regards, Robert Blackstone ___________________________________________________________________________________ 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 ___________________________________________________________________________________