From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59472 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Relative references to floats Date: Wed, 09 Jun 2010 22:29:00 +0200 Message-ID: <4C0FF98C.3000304@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276115355 28331 80.91.229.12 (9 Jun 2010 20:29:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 20:29:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 09 22:29:13 2010 connect(): No such file or directory 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 1OMRtg-0007Y3-SI for gctc-ntg-context-518@m.gmane.org; Wed, 09 Jun 2010 22:29:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B6EAC9B7A; Wed, 9 Jun 2010 22:29:12 +0200 (CEST) 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 B2rLuC3wG0pg; Wed, 9 Jun 2010 22:29:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BB1EAC9B16; Wed, 9 Jun 2010 22:29:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6E8F5C9B16 for ; Wed, 9 Jun 2010 22:29:08 +0200 (CEST) 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 Dg21GsKDFmz2 for ; Wed, 9 Jun 2010 22:29:06 +0200 (CEST) Original-Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by balder.ntg.nl (Postfix) with ESMTP id 3298AC9AE3 for ; Wed, 9 Jun 2010 22:29:05 +0200 (CEST) Original-Received: by ewy10 with SMTP id 10so1262997ewy.2 for ; Wed, 09 Jun 2010 13:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=YlvxoLBdEH3vhokZD3rEYvqamR6htWujX+RKM96gYP4=; b=Xh8gozygBWToAyYqOuPq0J1opLx+lzyskG5lbp61x09cCBtmU244aO54EkountB1s1 QfgzI6IRrzjsC1G6bp24h2IAbNYNHJ6PCGuVkj0uLhI6nPTEnenCdOCMNR8ZALKyYDzv EzEENvbsnwjKLhXMoPL7XV0gzpby81AQpUc0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=GchS/1BkSd5BdlJIq4V+GQYegUbHytYh6s/t98IGblpH8gE5vU7nYCN7FhAeOIAgo8 g3YDK7Fdn6sz92/DfMRd35KF7h/xkFbcH9hM1r+w5926pIf79V55VSVJTh+cU+TfvmKY vYKr8hJ1p2ZvscodIxecIQ33hfx0uEVglEBSI= Original-Received: by 10.213.31.140 with SMTP id y12mr1698065ebc.26.1276115345424; Wed, 09 Jun 2010 13:29:05 -0700 (PDT) Original-Received: from rover.fritz.box ([188.105.231.251]) by mx.google.com with ESMTPS id 15sm4313317ewy.12.2010.06.09.13.29.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 09 Jun 2010 13:29:03 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: 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:59472 Archived-At: Am 09.06.10 14:43, schrieb Andreas Schneider: > Hello, > > is there currently (in MkIV) some way to have relative references to floats? > I imagine something like "... as you can see \above[fig:somefigure]." which > would print "... as you can see above." if the figure is above the current > paragraph or "... as you can see below." if it is below. > > Maybe it's unusual to do that in books/papers, but I thought it might look > better than to reference a page or a number if it is expected, that the > figure is close by anyway. > > It would be nice if it could even go so far as to include page offsets ... > "... as you can see on the next page" or "... as you can see two pages > ahead". > > I have no real need to use this, it was just an idea to tidy up my text a > bit (without risking wrong references when the layout changes and floats > shift around). So if that is currently possible: awesome ... if not: no harm > done :-) > strc-ref.mkiv: %D A still very rudimentary|/|experimental forward|/|backward %D reference mechanism is provided by the macro \type{\atpage}: %D %D \starttyping %D ... \somewhere{backward text}{forward text}[someref] ... %D ... \atpage[someref] ... %D \stoptyping 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 ___________________________________________________________________________________