From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61948 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: picture- and formula-references broken with current beta Date: Fri, 24 Sep 2010 15:30:01 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <201009241530.01668.alan.braslau@cea.fr> References: <9749A985-92BB-4DDF-9AAF-111C293F1309@rz-online.de> <4C99DD23.3060606@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285335039 19166 80.91.229.12 (24 Sep 2010 13:30:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 13:30:39 +0000 (UTC) Cc: Hans Hagen , Andreas Harder To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 24 15:30:38 2010 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 1Oz8MG-00079z-QZ for gctc-ntg-context-518@m.gmane.org; Fri, 24 Sep 2010 15:30:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0C0DBCA78D; Fri, 24 Sep 2010 15:30:36 +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 bUr7smqjQw4T; Fri, 24 Sep 2010 15:30:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA5CFCA675; Fri, 24 Sep 2010 15:30:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0731ECA675 for ; Fri, 24 Sep 2010 15:30:31 +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 6eywn36YDGC7 for ; Fri, 24 Sep 2010 15:30:19 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id A9CC5CA5C2 for ; Fri, 24 Sep 2010 15:30:19 +0200 (CEST) Original-Received: from sainfoin-out.extra.cea.fr (sainfoin-out.extra.cea.fr [132.166.172.107]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8ODUII5015586 for ; Fri, 24 Sep 2010 15:30:19 +0200 Original-Received: from epeire1.extra.cea.fr (epeire1.extra.cea.fr [132.167.198.31]) by sainfoin.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.0) with ESMTP id o8ODUIFP018235 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 24 Sep 2010 15:30:18 +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 o8ODUHxG030045; Fri, 24 Sep 2010 15:30:18 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-ha-003840.localnet (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.1) with ESMTP id o8ODUHcj014255; Fri, 24 Sep 2010 15:30:17 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.32; KDE/4.4.5; x86_64; ; ) In-Reply-To: <4C99DD23.3060606@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=132.166.172.107; 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: 0xDaBuing - 1d96ec2d4855 - 20100924 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:61948 Archived-At: On Wednesday 22 September 2010 12:40:35 Hans Hagen wrote: > On 22-9-2010 11:50, Andreas Harder wrote: > > Hi all, > > > > can someone confirm that picture- and formula-references are broken with > > the current beta. Here is a test file: > > > > \starttext > > \placefigure[auto][pic:1]{caption}{\externalfigure[dummy]} > > \placeformula[for:1] > > \startformula > > > > a+b > > > > \stopformula > > > > \in{picture}[pic:1] > > \in{formula}[for:1] > > \stoptext > > New beta. Can you check again? Keep in mind that pic: and fig: are also > checked as prefix. > I see from looking at the source code that prefixes are used to localize references. There is also some sort of automatic prefixing mechanism. Can someone explain this more as it is not clear to me from documentation in the source code. Indeed, I have for a long time used keys such as \placefigure [here] [fig:Einstein] {caption} {\externalfigure [Einstein]} and \startchapter [reference=ch:Einstein,title=Einstein] also \placeformula [eqn:Einstein] \startformula E = mc^2 \stopformula etc. where the "prefix" is just a label uniquely identifying the tag, thus avoiding multiple definitions. (I also do this practice in LaTeX using \label{}) I was unaware that ConTeXt handled this explicitly. 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 ___________________________________________________________________________________