From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80124 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Place an annotation before it is defined Date: Mon, 7 Jan 2013 22:20:15 +0100 Message-ID: <20130107212015.GV11551@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1842564935==" X-Trace: ger.gmane.org 1357593630 8713 80.91.229.3 (7 Jan 2013 21:20:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2013 21:20:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 07 22:20:47 2013 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 1TsK7e-0006md-A9 for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jan 2013 22:20:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9DA78101EE; Mon, 7 Jan 2013 22:20:26 +0100 (CET) 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 Gtag0g7Ma8x1; Mon, 7 Jan 2013 22:20:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3B1A2101FD; Mon, 7 Jan 2013 22:20:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 374F4101FD for ; Mon, 7 Jan 2013 22:20:23 +0100 (CET) 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 vfPmzKC0P12m for ; Mon, 7 Jan 2013 22:20:22 +0100 (CET) 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 7C4B0101EE for ; Mon, 7 Jan 2013 22:20:22 +0100 (CET) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r07LKImo021302 for ; Mon, 7 Jan 2013 22:20:21 +0100 Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id 9521B11B88F for ; Mon, 7 Jan 2013 15:20:17 -0600 (CST) Original-Received: from homerow (83.68.239.193) by lavabit.com with ESMTP id 9XLEPL1PBTW9 for ; Mon, 07 Jan 2013 15:20:17 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=tLDDOR3ZHMCzKnYt12vrUx2WLCoP3O8Ox2FvCcw8eNJf55kA/CgRY/38ZGaaXRVAZGz4MCiOwYaBal1v46FwLCMQYXy3pkCTorpswOZMNMLHsBHI1jAbC5z1nigMQXpamumubRyY4lajn8qYt3xEZWsCFcpiUnjoYKZTmlA9PoQ=; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:User-Agent; Mail-Followup-To: mailing list for ConTeXt users User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=TX; city=Dallas; postalcode=75204; latitude=32.8019; longitude=-96.7883; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8019,-96.7883&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03IJ9kiam - 8edff62337fa - 20130107 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:80124 Archived-At: --===============1842564935== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mmR5Tf+WJGm+vTLg" Content-Disposition: inline --mmR5Tf+WJGm+vTLg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, what is the best solution to place the content of annotations before they are defined in the text? What comes to mind is writing the content into an external file and read it in the next run. But maybe I overcomplicate things (usually I do) and there's a simpler solution. Here's an example: \usemodule [annotation] \defineannotation [myannotation] \setupannotation [myannotation] [alternative=myalternative] \defineannotationalternative [myalternative] [renderingsetup=annotation:myalternative] \startsetups [annotation:myalternative] Content: \placeannotationcontent \stopsetups \starttext %% The annotation content should be placed here. \input ward \blank %% Although it is defined later \startmyannotation \input knuth \stopmyannotation \stoptext Marco --mmR5Tf+WJGm+vTLg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJQ6zwPAAoJEPGqVaNSn0iKZL8H/1vMiUqzGNQxiVCHKmua5O9W OeT1lcpTgTezA7NKb8h8zxICqg8+an0cJ2KePm7qyxEuJO/LrtTyAfrZNB3CdWxT xRVQ4vWGIklE5iZlamFI1vxDFqZbP+ji8EJsCes6qZMkbxrWYZzWtfnVbZ/kEGXX Hydml8nGfen6WZ81UjhevJ+GCApk0YjrsCPoPgU54iffb4zPUWTtUeb0yGHI4iNd zNo/D2YkdG3CNMsr4nKTYQ0zYsaGobwCjNVU/C7NrlUA3ZghGfv8FdBDajRNPM37 T43tbs4haSv97HrPtk6sKk5QgexA8WBTn7pysrYR6ORYgCyMpLr7b2sDBhdLvUA= =eavV -----END PGP SIGNATURE----- --mmR5Tf+WJGm+vTLg-- --===============1842564935== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1842564935==--