From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80245 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: buffers (append) Date: Mon, 14 Jan 2013 14:48:24 +0100 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <20130114144824.3826f2d5@iram-hb-003386.extra.cea.fr> References: <20130114090013.16b0a433@iram-hb-003386.extra.cea.fr> <1049A773-8637-4DB2-86D6-1148CB652C92@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358171325 29667 80.91.229.3 (14 Jan 2013 13:48:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 13:48:45 +0000 (UTC) Cc: wolfgang.schuster@gmail.com To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 14 14:49:03 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 1TukPM-0005Di-Es for gctc-ntg-context-518@m.gmane.org; Mon, 14 Jan 2013 14:49:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDD81101EB; Mon, 14 Jan 2013 14:48:43 +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 hcxvbeZuO7Yx; Mon, 14 Jan 2013 14:48:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C0DDC101E5; Mon, 14 Jan 2013 14:48:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B332B101E5 for ; Mon, 14 Jan 2013 14:48:35 +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 ry428OPD5YDP for ; Mon, 14 Jan 2013 14:48:30 +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 344AD101E2 for ; Mon, 14 Jan 2013 14:48:30 +0100 (CET) Original-Received: from sainfoin-out.extra.cea.fr (sainfoin-out.extra.cea.fr [132.167.192.145]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0EDmQfH019375 for ; Mon, 14 Jan 2013 14:48:27 +0100 Original-Received: from epeire1.extra.cea.fr (epeire1.extra.cea.fr [132.167.198.31]) by sainfoin.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.3) with ESMTP id r0EDmQei031357 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 14 Jan 2013 14:48:26 +0100 Original-Received: from orpin1.extra.cea.fr (orpin1.extra.cea.fr [132.167.198.4]) by epeire1.extra.cea.fr (8.14.4/8.14.4) with ESMTP id r0EDmPGv006419; Mon, 14 Jan 2013 14:48:26 +0100 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-hb-003386.extra.cea.fr (charybde.extra.cea.fr [132.166.43.102]) by orpin1.extra.cea.fr (8.13.8/8.13.8/CEAnet-Extranet-out-1.2) with ESMTP id r0EDmPbF001476; Mon, 14 Jan 2013 14:48:25 +0100 In-Reply-To: <1049A773-8637-4DB2-86D6-1148CB652C92@gmail.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=132.167.192.145; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03ILNMrFr - a06167125e51 - 20130114 (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:80245 Archived-At: On Mon, 14 Jan 2013 09:34:08 +0100 Wolfgang Schuster wrote: > > Am 14.01.2013 um 09:00 schrieb Alan BRASLAU : > > > Hello, > > > > In addition to \startbuffer \stopbuffer > > it would be nice to have \startappendbuffer \stopappendbuffer. > > > > I see that the lua function buffer.append() exists but I have not > > worked-out how to add this functionality cleanly as conTeXt macros. > > I imagine that this might be quite trivial for our TeX programming > > experts... (for once, a [useful?] suggestion that in the end will > > not entail many hours of work? :) > > > \startbuffer[a] > Line 1 > \stopbuffer > > \startbuffer[b] > Line 2 > \stopbuffer > > \starttext > > \startlines > \getbuffer[a,b] > \stoplines > > \stoptext > > Wolfgang Thank you Wolfgang, this is useful. However, it would still be helpful to be able to generically add to a buffer without having to rename a new one. Shouldn't be very difficult but I did not find that anything like this already exists. I often think this way when I teach, adding steps to an example while repeating the previous steps. \startbuffer[a] Line 1 \stopbuffer \getbuffer[a] \startaddtobuffer[a] Line 2 \stopaddtobuffer \getbuffer[a] Alan ___________________________________________________________________________________ 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 ___________________________________________________________________________________