From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71568 Path: news.gmane.org!not-for-mail From: Michael Green Newsgroups: gmane.comp.tex.context Subject: References to annotations Date: Wed, 5 Oct 2011 10:50:34 -0700 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317837062 4083 80.91.229.12 (5 Oct 2011 17:51:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2011 17:51:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 05 19:50:56 2011 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 1RBVcN-0005gu-UI for gctc-ntg-context-518@m.gmane.org; Wed, 05 Oct 2011 19:50:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BFA04CAFF4; Wed, 5 Oct 2011 19:50:54 +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 55LtlDclpeEl; Wed, 5 Oct 2011 19:50:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 202BACAFB5; Wed, 5 Oct 2011 19:50:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4CFEACAFB5 for ; Wed, 5 Oct 2011 19:50:51 +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 1wPqB0lf8uWz for ; Wed, 5 Oct 2011 19:50:40 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 19A88CA680 for ; Wed, 5 Oct 2011 19:50:40 +0200 (CEST) Original-Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p95HocPJ011154 for ; Wed, 5 Oct 2011 19:50:39 +0200 Original-Received: by qyk27 with SMTP id 27so2140983qyk.14 for ; Wed, 05 Oct 2011 10:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=doIFqJca/fEX7CMKV7QJbnfq0fm5cb3+swfM7KIILhw=; b=IyTUDwfe2r49HmubC/lKK07LPZBCJ9ByTBQAiyT1lfzpiG86ObYx41tm62hUVGfbsb 9WXWyonJ3+i9ykppRoICFFpt1RaE3QSYX/OiIBQ/Khow/ShTz0GcIVYALk7h5CdI4rbL 32muCK57g4wVe5vm+K3eHVglcmwVvhw90ezXk= Original-Received: by 10.68.32.73 with SMTP id g9mr20491055pbi.56.1317837037785; Wed, 05 Oct 2011 10:50:37 -0700 (PDT) Original-Received: from [172.18.0.103] (2-151-31-216.static.tierzero.net. [216.31.151.2]) by mx.google.com with ESMTPS id u1sm9674027pbr.9.2011.10.05.10.50.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Oct 2011 10:50:36 -0700 (PDT) X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.176; 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: 0cFF5OCsO - 664327e507e2 - 20111005 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:71568 Archived-At: I'm getting two unexpected results from references to annotations: 1. The numbering is different: \placeannotationnumber starts at 1, \in[ref]= starts at 0 2. \atpage sometimes gives the page number and sometimes yields something s= urprising: "as we show below" (or above). That's nifty, but unexpected. Thank you. Michael ---- Example ----------------------------------------------------- \usemodule[annotation] \defineannotation[Arg][alternative=3Dcommand,number=3Dyes,command=3D\ArgCom= mand,text=3DArgument] \define[2]\ArgCommand{ \startitemize[n] \placeannotationcontent \stopitemize \placeannotationtext\ \placeannotationnumber\ \placeannotationtitle } \starttext \startArg[title=3DAn OK Argument,reference=3DOK] \item All men are mortal. \item Socrates is a man. \item Therefore, Socrates isn=92t going to make it. \stopArg References to the first argument: \in{argument}[OK], \atpage[OK] References to the second argument: \in{argument}[NotOK], \atpage[NotOK] \page \startArg[title=3DA Bad Argument,reference=3DNotOK] \item Someone I don=92t know called me. \item Barack Obama is someone I don=92t know. \item Therefore, Barack Obama called me. \stopArg References to the second argument: \in{argument}[NotOK], \atpage[NotOK] References to the first argument: \in{argument}[OK], \atpage[OK] \stoptext --------------------------------------------------------------------- ---- Results ---------------------------------------------------- [page 1] 1. All men are mortal. 2. Socrates is a man. 3. Therefore, Socrates isn=92t going to make it. Argument 1 An OK Argument References to the first argument: argument 0, at page 1 References to the second argument: argument 1, as we show below [page 2] 1. Someone I don=92t know called me. 2. Barack Obama is someone I don=92t know. 3. Therefore, Barack Obama called me. Argument 2 A Bad Argument References to the second argument: argument 1, at page 2 References to the first argument: argument 0, as we show above --------------------------------------------------------------------- ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________