From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80129 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Place an annotation before it is defined Date: Mon, 7 Jan 2013 22:34:07 +0100 Message-ID: References: <20130107212015.GV11551@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1357594447 16071 80.91.229.3 (7 Jan 2013 21:34:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2013 21:34:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 07 22:34:25 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 1TsKKu-0000Zv-Oq for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jan 2013 22:34:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F193610217; Mon, 7 Jan 2013 22:34:08 +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 6UBxzJqzLtbm; Mon, 7 Jan 2013 22:34:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A295010252; Mon, 7 Jan 2013 22:34:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8F87F10252 for ; Mon, 7 Jan 2013 22:34:05 +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 1qzhYJrMyijZ for ; Mon, 7 Jan 2013 22:34:04 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id CE9F110217 for ; Mon, 7 Jan 2013 22:34:04 +0100 (CET) Original-Received: from mail-bk0-f44.google.com (mail-bk0-f44.google.com [209.85.214.44]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r07LlSlD002986 for ; Mon, 7 Jan 2013 22:47:29 +0100 Original-Received: by mail-bk0-f44.google.com with SMTP id w11so8876306bku.31 for ; Mon, 07 Jan 2013 13:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=Td4dEsNRPd6jxzJVDDinguXWvCQk0cBypZDdb57JI/g=; b=CtNmYTuqVWQAgs9qysr2uVMuDfbzcB2jRHN8Zql+97ZD/+TwISiIltPzzPKYBsr+6A 9yWEoBrFVN3BWMFtPc9OWm3HUmyCz8Wd6fMI/VJPo87W1zAbzyzR60CE/w3HqbBX47yj 0f2MFkIYKGCBCHx2svkrayWF2U2S97nXgo7rYapn2mT9JVVxElTKjGnHyqEQ5gjRNTzK mRjJkBZSYJkc9Qg/Lw1xe/ZsAiojKfciDmVP2MAb0kyIZLgQppXOwuIyIFN6vyQsxfIb jB557Qq3uhEBV9kfuEHPwx8/Feh2q0zq8E/75CCAPx0ZwW+52X74TssoqMy9tqTUTILX UwjQ== X-Received: by 10.204.147.6 with SMTP id j6mr30387073bkv.61.1357594443604; Mon, 07 Jan 2013 13:34:03 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4d074adf.pool.mediaWays.net. [77.7.74.223]) by mx.google.com with ESMTPS id o7sm43891455bkv.13.2013.01.07.13.34.02 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 13:34:02 -0800 (PST) In-Reply-To: <20130107212015.GV11551@homerow> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.44; 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: 01IJ9Ltcl - 04e956d2712a - 20130107 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:80129 Archived-At: Am 07.01.2013 um 22:20 schrieb Marco Patzer : > 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=3Dmyalternative] > = > \defineannotationalternative > [myalternative] > [renderingsetup=3Dannotation: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 That=92s not possible because the content is stored only in memory and is t= herefore only available after you put the environment in your document. What you can do is to set the content of the environment at the begin of th= e document and refer to it at a later position like you can do with buffers. \usemodule[annotation] \defineannotation[test][method=3Dbuffer,text=3DTest] \starttest[one] \input knuth \stoptest \starttest[two] \input ward \stoptest \starttext \gettest[two][title=3DWard] \gettest[one][title=3DKnuth] \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 ___________________________________________________________________________= ________