From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76075 Path: news.gmane.org!not-for-mail From: Robert Blackstone Newsgroups: gmane.comp.tex.context Subject: Re: References to floats Date: Wed, 9 May 2012 16:16:39 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1336573014 22395 80.91.229.3 (9 May 2012 14:16:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 May 2012 14:16:54 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed May 09 16:16:52 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 1SS7hC-0000vR-IX for gctc-ntg-context-518@m.gmane.org; Wed, 09 May 2012 16:16:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B48E101E7; Wed, 9 May 2012 16:16:47 +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 6vYjqVn7+BQh; Wed, 9 May 2012 16:16:45 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A57AD101E3; Wed, 9 May 2012 16:16:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E677101E3 for ; Wed, 9 May 2012 16:16: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 UY9w4QQgo3gr for ; Wed, 9 May 2012 16:16:42 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id B68F0101CF for ; Wed, 9 May 2012 16:16:42 +0200 (CEST) Original-Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q49EGdJR012152 for ; Wed, 9 May 2012 16:16:40 +0200 Original-Received: by werc12 with SMTP id c12so322372wer.14 for ; Wed, 09 May 2012 07:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=X3qc/wyJBBQJUmFxRQDizvJEZB5K1lnoPRR5HW1WDo0=; b=W5jg0h6Wh+qL6z3jIpyzFl/W+jBltlgfIkyLPDNcp7CoD5xHc0O/W8coqxdEyozBjA d48WAqlS7zTxb9QvEr2l6+8zjAuiVpvhIFOEzz40nH7pWmX30aIPPSXM0X6fk84LQlyS jMEqfIdapWVbP6KEsugRAV73oLwChtD+IQdsvH18Xm1ZWbWH2GWFw5Ftv2EA5iZIgurN VTdGghFExxl/OkwW1NJg7skWNUm4XTm5Qibu6vQfCdK7r2Z4jWcd8bkP9uGqs3dzDn5l 4Y8AsM9D2x9x5v7OpLt1y41YMputo9LHNAFis4feAm73ytedWDOORu7/NvfsAkIOkfu6 R7aQ== Original-Received: by 10.42.80.19 with SMTP id t19mr93399ick.55.1336572999447; Wed, 09 May 2012 07:16:39 -0700 (PDT) Original-Received: by 10.42.167.74 with HTTP; Wed, 9 May 2012 07:16:39 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; 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: 0dH7OgEDM - bd4f62c9d54d - 20120509 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:76075 Archived-At: On Mon, 7 May 2012 22:25:37, Wolfgang Schuster wrote: > Am 07.05.2012 um 15:03 schrieb Robert Blackstone: > >> On Mon, May 7, 2012 at 12:00 PM, =A0 Hans Hagen >> wrote >>> >>> On 6-5-2012 23:18, Robert Blackstone wrote: >> >>>> Sometimes however the example is placed at the same page as the text d= iscussing it. >>>> Is there any trick to adapt the reference to this situation, so that, = instead of saying, for instance, "ex. 3.4 on page 12", it just says "ex. 3.= 4", or "ex. 3.4 below" or even "ex. 3.4 on this page"? >>>> >> >>> >>> you can try \atpage[ref] >>> >> > > The best way is to define your own command for this. > > \starttext > > <\somewhere{above}{below}[fig:test]> > > \page > > <\somewhere{above}{below}[fig:test]> > > \placefigure[][fig:test]{Test}{\framed{test}} > > \page > > <\somewhere{above}{below}[fig:test]> > > \stoptext > > Wolfgang > Thank you, Wolfgang, for your help. Though this command works perfectly and is nicely adaptable, in the end it does not give me what I would have liked. Perhaps my description of what I want was not clear enough. For me, both commands, \somewhere{}{}[ref] and \atpage[ref], have in common that they are imprecise when I want precision, namely when the float is not at the same page as its reference, and precise when they are in fact redundant, that is, when float and reference are on the same page, where the reader will see it at one glance, whether it is above or below. Writing, for instance, on page 20: "See example 2 on page 20" is not wrong but somehow it looks clumsy and unprofessional to me, and unworthy of ConTeXt, if I may say so. The challenge would seem "to pick ConTeXt's brain" just before the final processing run, when it knows whether float and reference will be on the same page or not. Could this perhaps be solvable by some Lua-code? Anyway, for lack of a better solution, I will for the time being refer to each float with "\in{ex.}[ref] on \at{page}[ref] \somewhere{on the previous page}{on the next page}[ref] \somewhere{above}{below}[ref]" and manually comment out, after the final processing run, what I cannot use. Not very elegant, to put it mildly, and I hope that someone on this list has a better solution. Kind regards, 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 ___________________________________________________________________________= ________