From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76081 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: References to floats Date: Wed, 9 May 2012 17:24:34 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <20120509172434.553f6152@sole.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336577088 24961 80.91.229.3 (9 May 2012 15:24:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 May 2012 15:24:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 09 17:24:48 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SS8kx-00074D-HA for gctc-ntg-context-518@m.gmane.org; Wed, 09 May 2012 17:24:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DB6E101F1; Wed, 9 May 2012 17:24:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1-yeofW9lpNz; Wed, 9 May 2012 17:24:39 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26FD6101E4; Wed, 9 May 2012 17:24:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA922101E4 for ; Wed, 9 May 2012 17:24:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id x-WGQcugs70y for ; Wed, 9 May 2012 17:24:36 +0200 (CEST) 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 C2112101E3 for ; Wed, 9 May 2012 17:24:36 +0200 (CEST) Original-Received: from oxalide-out.extra.cea.fr (oxalide-out.extra.cea.fr [132.168.224.8]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q49FOZXv009090 for ; Wed, 9 May 2012 17:24:35 +0200 Original-Received: from epeire1.extra.cea.fr (epeire1.extra.cea.fr [132.167.198.31]) by oxalide.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.3) with ESMTP id q49FOZs3011332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 9 May 2012 17:24:35 +0200 Original-Received: from orpin2.extra.cea.fr (orpin2.extra.cea.fr [132.167.198.5]) by epeire1.extra.cea.fr (8.14.4/8.14.4) with ESMTP id q49FOYSi014154 for ; Wed, 9 May 2012 17:24:34 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from sole.extra.cea.fr (iram-ha-003840.extra.cea.fr [132.166.25.152]) by orpin2.extra.cea.fr (8.13.8/8.13.8/CEAnet-Intranet-out-1.2) with ESMTP id q49FOYoP019334 for ; Wed, 9 May 2012 17:24:34 +0200 X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=132.168.224.8; country=FR; region=A3; city=Gif-sur-yvette; latitude=48.6833; longitude=2.1333; http://maps.google.com/maps?q=48.6833,2.1333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TH7PozGU - e0aba0390e47 - 20120509 (trained as not-spam) 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:76081 Archived-At: > On Mon, May 7, 2012 at 15:03, Robert Blackstone wrote: > > Thank you, Hans, for your quick reply. Unfortunately it does not help > me. The result is basically the same as when I write "on > \at{page}[ref]", except that, instead of "on page 20", I get "at page > 20", (with the float sitting on page 20). > Frankly, I'm rather surprised that this wish of mine seems not to have > come up before. > Indeed, something clean and automatic should be easy - after all the color of the reference is different (contrastcolor) when it is to be found on the same page or on a different page. \at{page}[ref] could be smart enough... What should the behavior be? "on \at{page}[ref]" could return "on ", but this would not be right. "\at{on page}[ref]" could return "", but otherwise "on page" would be a (colored) active link. I might try "\in{figure}[ref] \at{(page }{)}[ref]" and hope/expect "(page xx)" to be replaced by "" when referring to the current page. Maybe Wolfgang is right in suggesting writing a custom macro. I haven't looked at the code, though. Alan ___________________________________________________________________________________ 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 ___________________________________________________________________________________