From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78230 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: References to annotations broken, mkiv Date: Wed, 12 Sep 2012 01:18:23 +0200 Message-ID: <1DDC8ECA-746C-4778-80AC-0D0BAAEAC0EF@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347405572 21259 80.91.229.3 (11 Sep 2012 23:19:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2012 23:19:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 12 01:19:35 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 1TBZjx-00054n-OQ for gctc-ntg-context-518@m.gmane.org; Wed, 12 Sep 2012 01:19:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 47BF8101EF; Wed, 12 Sep 2012 01:19:29 +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 k0ZJYbIJCd-E; Wed, 12 Sep 2012 01:19:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CDF22101E2; Wed, 12 Sep 2012 01:19:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7A587101E2 for ; Wed, 12 Sep 2012 01:19:23 +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 rR7KZGgaWN64 for ; Wed, 12 Sep 2012 01:19:21 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 3AA7D101E0 for ; Wed, 12 Sep 2012 01:19:21 +0200 (CEST) Original-Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8BNJK0a013485 for ; Wed, 12 Sep 2012 01:19:20 +0200 Original-Received: by weys10 with SMTP id s10so756346wey.14 for ; Tue, 11 Sep 2012 16:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=5XJ7IW5Ad2Z4Wlc1Ts9eDK2uoo1OWIaHEFhbj9pDbKk=; b=wRduXsOft9N3oL92CgPlw+Y+URCKDmiQxFz73EEO7BCa2ggixDQz+Tyy3UpopVVUDO o6prf6mprCQv0BSDpjh5k4NwaAEm7eOhs9vXNgrjo4l36m39wAzPwyd+QC5Nn+OBv/N4 dT71YYn4QEcd5Gkc1xhzoxCZrd2LCgh8+ElD7y/w/za6EpeV7Vaia9pezy/fB8//0yIT koCn7/c4Q6nexW+m2fK1awNkKESfKIF4+KxJw0NZlmIYvN21U4HJJLZVRo5kdAW8wrof a43WRwoATXVcZpnWgM56jr01T6AwHtPS/wVWV+q/nF5EjvS88gDPyXG3hWGAaiBgqmM7 VzdQ== Original-Received: by 10.180.98.200 with SMTP id ek8mr28346656wib.0.1347405560061; Tue, 11 Sep 2012 16:19:20 -0700 (PDT) Original-Received: from [10.138.120.74] ([89.204.138.74]) by mx.google.com with ESMTPS id dp8sm7447149wib.3.2012.09.11.16.19.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 16:19:19 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1486) 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: 0QHVXjkTD - 71b04adb6d0f - 20120912 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78230 Archived-At: Am 11.09.2012 um 17:17 schrieb Dominik Leopold Forkert : > Hello, > = > the recent update of the Annotation module (2012.09.05), mkiv broke > the references to annotations for me: > = > \usemodule[annotation] > \defineannotation[definition][text=3DDefinition,number=3Dyes] > = > \starttext > \definition[reference=3Ddef1]{blabla} > In \in{Definition}[def1] ... > \stoptext > = > In the example above the rather strange output is: > Definition 2 blabla > = > In Definition 1 ... > = > = > In addition, I do not know how to correctly get the annotation counter > displayed in a 'bychapter'-style. I tried: > = > \usemodule[annotation] > \definenumber[DefinitionCounter][prefix=3Dyes,way=3Dbysection] > \defineannotation[definition][text=3DDefinition,number=3Dyes,counter=3DDe= finitionCounter] > = > \starttext > \chapter{A chapter} > \section{A section} > Counter: \getnumber[DefinitionCounter] > \definition[reference=3Ddef1]{blabla} > = > Counter: \getnumber[DefinitionCounter] > = > In \in{Definition}[def1] blabla ... > \stoptext > = > Again the behavior of the counter is really weird. Now I get > "Definition 1.1.2 blabla", but \in[def1] just shows "1" instead of > "1.1.2". > = > I sincerely hope for clarification! I uploaded a new version where I fixed the counter bug for the annotation c= ommand and also the output of the reference-output. There is also no need to create a new counter because each annotation has i= t=92s own counter with the same name as the environment/command but to change the way how it is displayed you have to use \setupannotation. \usemodule[annotation] \defineannotation[definition][text=3DDefinition,number=3Dyes] \setupannotation[definition][prefix=3Dyes,way=3Dbychapter,prefixsegments=3D= chapter] \starttext \chapter{A chapter} \section{A section} \definition[reference=3Ddefinition:1]{blabla} Counter: \rawcountervalue[definition]/\convertedcounter[definition][prefix= =3Dyes,prefixsegments=3Dchapter] In \in{Definition}[definition:1] blabla ... \stoptext Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________