From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76025 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: References to floats Date: Mon, 7 May 2012 22:25:37 +0200 Message-ID: <671E3BCD-462C-4BD5-A8A8-C927E64CC68E@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336422358 13212 80.91.229.3 (7 May 2012 20:25:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 May 2012 20:25:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 07 22:25:57 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 1SRUVE-00061n-TZ for gctc-ntg-context-518@m.gmane.org; Mon, 07 May 2012 22:25:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27C34101EE; Mon, 7 May 2012 22:25:52 +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 n7PXkNHanWEQ; Mon, 7 May 2012 22:25:49 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8BF46101E3; Mon, 7 May 2012 22:25:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C4D36101E3 for ; Mon, 7 May 2012 22:25:48 +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 KTN6iD5l3EaJ for ; Mon, 7 May 2012 22:25:47 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id D1D4D101E1 for ; Mon, 7 May 2012 22:25:47 +0200 (CEST) Original-Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q47KPkxd002781 for ; Mon, 7 May 2012 22:25:46 +0200 Original-Received: by wgbdt14 with SMTP id dt14so4282778wgb.2 for ; Mon, 07 May 2012 13:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=afJek8+Syp77ajOYWg963vAEJXfDzkxXhzZWyvsHXxg=; b=WOWw93pq3yGk3EbmmldhlTkpMBSULp90+VvlACFPS2r4PMEvILaovT+15nEx+8uEEl j5IKJEIlECSHOrR+19o5GlRN+R0m1focp+b4n8wZyexGikTrk2tz2Kecd5FaZD0xEqU5 MZ3GSJvt1MpD4xS6SEiwZXvNAnoVsEfOFeZ8EGkzUccSzovEKm4XnMEfN/FDRMQrel6J 4Tl8MRKQ1Bzlwg2ZsZYO7flKpd0sbPQmhEICFVHuTfsuc/Xajc+PiREYAcgalL/V1HsO 8u5jyr3k/Et3x12CJ38mi5ZK66qqSn58/j1RNma+yMLogeObB2JYPw988L3vnaMIlQqh l84Q== Original-Received: by 10.180.104.168 with SMTP id gf8mr15061435wib.12.1336422345916; Mon, 07 May 2012 13:25:45 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFBD1C.dip.t-dialin.net. [87.175.189.28]) by mx.google.com with ESMTPS id h8sm37632064wix.4.2012.05.07.13.25.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 May 2012 13:25:45 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; country=CA; region=ON; city=Hamilton; postalcode=l8n2g1; latitude=43.2500; longitude=-79.8333; http://maps.google.com/maps?q=43.2500,-79.8333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NH78pKJ9 - fa61a0a10d14 - 20120507 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:76025 Archived-At: Am 07.05.2012 um 15:03 schrieb Robert Blackstone: > On Mon, May 7, 2012 at 12:00 PM, 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 discussing 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] >> > > 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. The mechanism to check if float and reference are on the same page is available as Hans has shown with \atpage but there are to many ways to format the output. 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________