From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80133 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:57:55 +0100 Message-ID: <34165F64-B92B-44E0-A44B-92EED708201F@gmail.com> References: <20130107212015.GV11551@homerow> <50EB3D3B.80500@wxs.nl> <20130107214957.GX11551@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 1357595878 29807 80.91.229.3 (7 Jan 2013 21:57:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2013 21:57:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 07 22:58:15 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 1TsKhv-0006Zw-Ei for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jan 2013 22:58:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 120D9101E6; Mon, 7 Jan 2013 22:57:56 +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 BIr68BjdYAxh; Mon, 7 Jan 2013 22:57:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B2E89101EE; Mon, 7 Jan 2013 22:57:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1CD1B101EE for ; Mon, 7 Jan 2013 22:57:53 +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 GUt0BHTNKnQO for ; Mon, 7 Jan 2013 22:57:52 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 64BF5101E6 for ; Mon, 7 Jan 2013 22:57:52 +0100 (CET) Original-Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com [209.85.214.49]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r07Lvp0r015829 for ; Mon, 7 Jan 2013 22:57:51 +0100 Original-Received: by mail-bk0-f49.google.com with SMTP id jm19so8898256bkc.36 for ; Mon, 07 Jan 2013 13:57:51 -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=mIeR6m4+TiqkOaF5c8ukGXR+2H+jFCNG5HW4TKdXcZg=; b=vDUXPSejSw/IGMDCwaY2bJBRzOckD1iSMsy2WNf6VApT0GF/mQXp2ABbSqzTKxQk3v cUwg2iDjvqV0kV4LpnD/LdveYw/qlSCYiPykIc8XE4K01w0Wi4zbF2jk/GehZuOMN2A7 5aW2b9tG3uS4sob36AI8YZcM8yOBff/esQQ+HSVldyLZVqh+c5832hdN4md0j2jGbERG rvKibYCUtpUQymUBproUtfDA8kNRIlJcNpGqGyDlY17trjuZUuPJoHr3aymhtuVM29Ki qucVXoQ1MR9pMvZxrzNj4t3RbO89rNHmXOgY3zI2vRmQpegtwJOHEOYuI0LW31X3wSri cVWg== X-Received: by 10.204.12.202 with SMTP id y10mr31715137bky.51.1357595871253; Mon, 07 Jan 2013 13:57:51 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4d074adf.pool.mediaWays.net. [77.7.74.223]) by mx.google.com with ESMTPS id q22sm44024943bkv.16.2013.01.07.13.57.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 13:57:50 -0800 (PST) In-Reply-To: <20130107214957.GX11551@homerow> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.49; 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: 0TIJ9VPgE - 7e16e6fe5e7b - 20130107 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:80133 Archived-At: Am 07.01.2013 um 22:49 schrieb Marco Patzer : > On 2013=9601=9607 Hans Hagen wrote: > = >> buffers (or blocks) > = > Buffers apparently can't be used before the content is defined, but > it works for blocks (I never used them). Test: > = > \defineblock [bar] > = > \starttext > = > buf: \getbuffer[foo] > BBBBBBBBBBB > = > \startbuffer[foo] > buf: AAAAAAAAAAA > \stopbuffer > = > \useblocks [bar] > DDDDDDDDDDD > = > \beginbar > block: CCCCCCCCCCC > \endbar > = > \stoptext > = > Is there a reason why the blocks favour begin/end instead of > start/stop? Looks weird somehow. Blocks use begin/end to allow the same name for the environment as other co= mmands, e.g. for exams: \defineblock[question] \defineblock[answer] \hideblocks[answer] \defineenumeration[question] \defineenumeration[answer] \starttext \chapter{Questions} % Show only the question blocks \beginquestion \startquestion First question. \stopquestion \endquestion \beginanswer \startasnwer Answer to the first question. \stopanswer \endanswer \chapter{Answers} % Show the question with the corresponding answer \useblocks[question,answer] \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 ___________________________________________________________________________= ________