From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65295 Path: news.gmane.org!not-for-mail From: Robert Blackstone Newsgroups: gmane.comp.tex.context Subject: Conditional cross references to floats Date: Sun, 16 Jan 2011 20:58:27 +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="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295207939 1150 80.91.229.12 (16 Jan 2011 19:58:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Jan 2011 19:58:59 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 16 20:58:54 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 1PeYkY-0007FL-2b for gctc-ntg-context-518@m.gmane.org; Sun, 16 Jan 2011 20:58:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29810CAA16; Sun, 16 Jan 2011 20:58:53 +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 Md2oiti9Mst3; Sun, 16 Jan 2011 20:58:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C64EBCA9F8; Sun, 16 Jan 2011 20:58:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B57B9CA9F8 for ; Sun, 16 Jan 2011 20:58:39 +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 Z-5tNHV8X-M0 for ; Sun, 16 Jan 2011 20:58:28 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 98EB9CA9CF for ; Sun, 16 Jan 2011 20:58:28 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0GJwR1w028567 for ; Sun, 16 Jan 2011 20:58:28 +0100 Original-Received: by fxm12 with SMTP id 12so5242860fxm.14 for ; Sun, 16 Jan 2011 11:58:27 -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:content-transfer-encoding; bh=L5ak+7fP9O29VfzAAlfRZSx5ckknVTB9rCntSDFdJmY=; b=ipvbqXw4HgCvobJ3n2Aln+pR71nmfDS3GkzNzbxuyXTSrNsIhiYVVPaC3Lvby7sSUX 6HgzYe3/fRL/99PBCgUgo5YY4/1iLzP7HPv6blmHlVoNr6bzT7mtGSWrGtOeJMq2GTvU MdylaUuJPwfrhJ2FNMPInAn20FTX6Y8ALhLvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=fBFa1uMTgFrUQmebmumOmxRMHfKObs8MsHD8XolF5cZqV3gWCBGD6PR+4CSoT0EsaD gN10GnOlW2j625fGUtvKM+0seDVw1nW+AVu/h+CiJ3ygGYQ8B0X834lLRxrCEX6axB88 FfsqbcnJBA+YcQYEze+jk2y/nyFUd6GP0Rt0k= Original-Received: by 10.223.116.1 with SMTP id k1mr3774032faq.51.1295207907413; Sun, 16 Jan 2011 11:58:27 -0800 (PST) Original-Received: by 10.223.104.19 with HTTP; Sun, 16 Jan 2011 11:58:27 -0800 (PST) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) 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: 05DUjWso1 - 0bfaa3588e36 - 20110116 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:65295 Archived-At: Hi all, I wonder if it is already possible to perform the following task: I have to typeset documents that contain many pictures of various sizes. Due to lack of space, some may pictures may not appear on the page on which they are discussed. And also in the course of revising the document, adding text may push them to another page. Therefore I always refer to every picture with \in and \at. On the other hand, changing or deleting text may unexpectedly land them on the correct page. So sometimes it may happen that the reader, for instance on page 23, will be referred to a figure on page 23, which looks rather silly. Is there a trick to let ConTeXt automatically omit the reference when the picture happens to appear on the correct page (or change the reference to =AB=A0on this page=A0=BB). In other words, can one make a sort= of conditional reference that only mentions the page if it is not the present page? Would this perhaps be something that can be coded in Lua? (I saw a similar question on this list in june 2010, and the provisional solution that was suggested, but apparently did not work.) Incidentally, the address for the archive seems not to be correct (and untrusted). (Message: The requested URL https://foundry.supelec.fr/projects/contextrev/ was not found on this server.) If it is no longer in use wouldn't it perhaps be better not to mention it anymore at the bottom of each ntg-context Digest? Thanks in advance. Robert Blackstone ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________