From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80138 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Re: Place an annotation before it is defined Date: Mon, 07 Jan 2013 23:20:24 +0100 Message-ID: <50EB4A28.6010607@gyza.cz> References: <20130107212015.GV11551@homerow> <50EB3D3B.80500@wxs.nl> <20130107214957.GX11551@homerow> <34165F64-B92B-44E0-A44B-92EED708201F@gmail.com> Reply-To: hajtmar@gyza.cz, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1357597230 16372 80.91.229.3 (7 Jan 2013 22:20:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2013 22:20:30 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 07 23: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 1TsL3h-0002EY-AP for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jan 2013 23:20:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 99EC01026A; Mon, 7 Jan 2013 23:20:25 +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 Hz2UqDVaFla7; Mon, 7 Jan 2013 23:20:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 35C3510236; Mon, 7 Jan 2013 23:20:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 530CA10236 for ; Mon, 7 Jan 2013 23:20:22 +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 8sEV+1EuM-jm for ; Mon, 7 Jan 2013 23:20:21 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 0A914101EE for ; Mon, 7 Jan 2013 23:20:20 +0100 (CET) Original-Received: from h1.cmg1.smtp.forpsi.com (h1.cmg1.smtp.forpsi.com [81.2.195.162]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r07MKIq3006062 for ; Mon, 7 Jan 2013 23:20:19 +0100 Original-Received: from [192.168.20.101] ([88.103.230.14]) by cmg1.smtp.forpsi.com with bizsmtp id lALH1k0060KHK6001ALJ21; Mon, 07 Jan 2013 23:20:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <34165F64-B92B-44E0-A44B-92EED708201F@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=81.2.195.162; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NIJakiRG - ce3a4fe5fc2c - 20130107 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:80138 Archived-At: Hello Wolfgang, Last example is not working! I have installed last version of standalone = version... Jaroslav Hajtmar Here is this example ... \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 Dne 7.1.2013 22:57, Wolfgang Schuster napsal(a): > 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 = commands, 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= the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ > ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________