From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77118 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.comp.tex.context Subject: Two questions about buffers Date: Sat, 30 Jun 2012 14:25:23 +0200 Organization: WMI UAM Message-ID: <20120630142523.6a40abe1@aga-netbook> 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: dough.gmane.org 1341059140 16530 80.91.229.3 (30 Jun 2012 12:25:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2012 12:25:40 +0000 (UTC) To: ConTeXt mailing list Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 30 14:25:39 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 1Skwk6-0000EX-Mj for gctc-ntg-context-518@m.gmane.org; Sat, 30 Jun 2012 14:25:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F4A4101F0; Sat, 30 Jun 2012 14:25:38 +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 mRD6bS3bLqn9; Sat, 30 Jun 2012 14:25:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F38E101E2; Sat, 30 Jun 2012 14:25:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4759101E2 for ; Sat, 30 Jun 2012 14:25:31 +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 QCD1O6Nek1Tf for ; Sat, 30 Jun 2012 14:25:28 +0200 (CEST) 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 1D61C101E0 for ; Sat, 30 Jun 2012 14:25:28 +0200 (CEST) Original-Received: from msg.wmi.amu.edu.pl (msg.wmi.amu.edu.pl [IPv6:2001:808:114:2::50]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5UCXuSr032373 for ; Sat, 30 Jun 2012 14:33:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id A3E4D41727 for ; Sat, 30 Jun 2012 14:25:26 +0200 (CEST) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gEbpZcpuujWx for ; Sat, 30 Jun 2012 14:25:26 +0200 (CEST) Original-Received: from aga-netbook (unknown [213.156.123.123]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 67BBD4206C for ; Sat, 30 Jun 2012 14:25:26 +0200 (CEST) X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.6; i686-pc-linux-gnu) X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:808:114:2::50; country=PL X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01HsAxUQq - 907bfdc87546 - 20120630 X-Scanned-By: CanIt (www . roaringpenguin . com) 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:77118 Archived-At: Hello, I have two questions concerning buffers. 1. What is the difference between \grabbufferdata and \dostartbuffer? 2. I wanted to use buffers to define my own "environment" (as Wolfgang suggested to me a few days ago). However, there's a problem with \baselineskip; here is an example: \starttext \def\startMyEnv{\dostartbuffer[MyEnv][startMyEnv][stopMyEnv]} \def\stopMyEnv{{\tfxx\getbuffer[MyEnv]\par}} \input tufte \startMyEnv \input knuth \stopMyEnv \input tufte \stoptext Am I doing something wrong here? TIA -- Marcin Borkowski http://mbork.pl ___________________________________________________________________________________ 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 ___________________________________________________________________________________