From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77120 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Two questions about buffers Date: Sat, 30 Jun 2012 15:50:14 +0200 Message-ID: <9FBE7AA9-3848-4533-B6C7-CAA22F1B862C@gmail.com> References: <20120630142523.6a40abe1@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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341064228 16150 80.91.229.3 (30 Jun 2012 13:50:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2012 13:50:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 30 15:50:26 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 1Sky4A-0001s9-8Y for gctc-ntg-context-518@m.gmane.org; Sat, 30 Jun 2012 15:50:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1EFEC101EF; Sat, 30 Jun 2012 15:50:26 +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 GP4FMN6lv8jI; Sat, 30 Jun 2012 15:50:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 148B8101E2; Sat, 30 Jun 2012 15:50:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6BB7101E2 for ; Sat, 30 Jun 2012 15:50:22 +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 gDGOZWMrNzo4 for ; Sat, 30 Jun 2012 15:50:19 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 20106101E0 for ; Sat, 30 Jun 2012 15:50:18 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5UDoIK3021988 for ; Sat, 30 Jun 2012 15:50:18 +0200 Original-Received: by bkcjc3 with SMTP id jc3so1725880bkc.14 for ; Sat, 30 Jun 2012 06:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=pi0XGKxwNQAvMOGBfF4SmMPIo6dwfPzMRbWye4Eq4DY=; b=acnS/4Sp4lfVfiqF3ZT2w77Ey/1nx184Su8kCXZk1yBxqS49tWnh/zycIdBAvkJSlp zvs95DaVOLJSOLMOzlIqCYW7JrWQmZHnNTy8VNa6rT0npMqs5ox8teoSSayL7tjUTztH eifH+uemzloK+ddZjzKYQ0NZ9knG+Ypc+fYr+Nhj0+dhhW+vjriFVrLO7myt7iXg+6R1 sujpd/i5sadwx3R2CMZXYxYn1TcmeyCashFJBHg0uScqoqZCZQG3QKhF5KGwpK9o14cj 0R5Qb5uWcnrQ6kCUqKUGsMhpUW3dvLqaEFjFNVdJf3epahyW9VV88TpKDRWopNuq4qcw 5ZBg== Original-Received: by 10.204.148.78 with SMTP id o14mr3114351bkv.38.1341064218265; Sat, 30 Jun 2012 06:50:18 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFB5E7.dip.t-dialin.net. [87.175.181.231]) by mx.google.com with ESMTPS id n17sm6378444bkw.5.2012.06.30.06.50.16 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Jun 2012 06:50:17 -0700 (PDT) In-Reply-To: <20120630142523.6a40abe1@aga-netbook> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0QHsBOiNk - a551b78e3ff3 - 20120630 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:77120 Archived-At: Am 30.06.2012 um 14:25 schrieb Marcin Borkowski: > 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? You can use the annotation module for your environment. \usemodule[annotation] \defineannotation[MyEnv][style=\txx] \starttext \input tufte \startMyEnv \input knuth \stopMyEnv \input tufte \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-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________