From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77087 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: A problem with modes Date: Wed, 27 Jun 2012 05:23:42 +0200 Message-ID: <3ADDC0E7-1F5B-446C-A6E9-9F985112D536@googlemail.com> References: <20120626221211.327d57b7@aga-netbook> <70832ED2-5CAF-4DAA-A29C-AEA77B9F7EA6@googlemail.com> <20120626232537.00553f9b@aga-netbook> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340767433 25014 80.91.229.3 (27 Jun 2012 03:23:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2012 03:23:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 27 05:23:53 2012 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 1Sjir6-0007Fj-Nt for gctc-ntg-context-518@m.gmane.org; Wed, 27 Jun 2012 05:23:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 87C1910204; Wed, 27 Jun 2012 05:23:48 +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 SUamXJPJaExe; Wed, 27 Jun 2012 05:23:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0EE51101FD; Wed, 27 Jun 2012 05:23:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AC16A101FD for ; Wed, 27 Jun 2012 05:23:45 +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 NXsg0p2-doTx for ; Wed, 27 Jun 2012 05:23:43 +0200 (CEST) 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 B8322101E9 for ; Wed, 27 Jun 2012 05:23:43 +0200 (CEST) Original-Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5R3Nfcg017460 for ; Wed, 27 Jun 2012 05:23:42 +0200 Original-Received: by wgbds1 with SMTP id ds1so4432303wgb.2 for ; Tue, 26 Jun 2012 20:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=44g+0uSLF2R2H01kq+bJddNu/uy2PEFT0bR+kHTBdxs=; b=UTvK+cS7p2Qh55IebLLrmhth47kAYqcOPj3+6dff7G7M8u/7mBDPb0t67ciU4atVA/ Ptl818Bi5OK3WaPOLr2rJDERAoE7UVXOuCeBkMNh3mRp425fpsy6jsuKO45YlKGrXBU2 MrFaMcV8HuV+ceYjfMtXd0KPjqUddnuVfscF+Mu1yqDtBGlHCflhTGkhoFdYA/2gSssl tr/gJ3DAeFi4xVdhIAM7rwaTro+Fvj1nUsLLJ76UhbdQMlvZO5Q5goD/BZSF+BzZPhaw Wcymnynq9/0+zo+tUEdQuaNYDX8sE0G9RMpTw0BiRU7PmJNLittOyGdxdhW/Go4MzFIc UldQ== Original-Received: by 10.180.109.195 with SMTP id hu3mr985247wib.8.1340767421803; Tue, 26 Jun 2012 20:23:41 -0700 (PDT) Original-Received: from [192.168.2.36] (p54BAFAE7.dip.t-dialin.net. [84.186.250.231]) by mx.google.com with ESMTPS id ei4sm14618777wid.5.2012.06.26.20.23.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jun 2012 20:23:40 -0700 (PDT) In-Reply-To: <20120626232537.00553f9b@aga-netbook> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.41; 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: 0THrfnGTc - d694b9ff1266 - 20120627 (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.13 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:77087 Archived-At: Am 26.06.2012 um 23:25 schrieb Marcin Borkowski: >>> Or is there a better way to do something like this? >> = >> It depends on what you want to do. You can create a buffer command: >> = >> \def\startamode{\grabbufferdata[amode][startamode][stopamode]} >> %\def\stopamode {\getbuffer[amode]} >> = >> \starttext >> = >> All modes. >> \startamode >> =93A=94 mode. >> \stopamode >> = >> \stoptext > = > Thanks, it worked. One question: is there any difference between > = > \def\starta{...} > \def\stopa{...} > = > and > = > \definestartstop[a][before=3D{...},after=3D{=85}] Yes because in my definition for \startamode I start a buffer which reads e= verything untill the delimiting \stopamode and stores it in memory, afterwards you ca= n access the stored content with \getbuffer[=85]. When you use \definestartstop to c= reate the environment you have only two commands which perform a few things at th= e begin and end of the environment but you can do much with the content itself, the= only way to gobble the content is to store it in a box but than the buffer metho= d is easier. 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 ___________________________________________________________________________= ________