From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81033 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: letter module: File ended while scanning use of \buff_gobble Date: Mon, 4 Mar 2013 20:11:28 +0100 Message-ID: <7E754AE0-FFF6-4C04-9DD2-0C7FE764FE2E@gmail.com> References: <87y5e3qnd5.fsf@micropit.couberia.selfip.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1362424297 26411 80.91.229.3 (4 Mar 2013 19:11:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Mar 2013 19:11:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 04 20:11:57 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 1UCank-0004oP-Na for gctc-ntg-context-518@m.gmane.org; Mon, 04 Mar 2013 20:11:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6E879101FF; Mon, 4 Mar 2013 20:11: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 DJ877gqWaTFE; Mon, 4 Mar 2013 20:11:31 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7AC06101F7; Mon, 4 Mar 2013 20:11:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7430F101F7 for ; Mon, 4 Mar 2013 20:11:30 +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 UJLMRrgiBNL9 for ; Mon, 4 Mar 2013 20:11:29 +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 B30F6101F3 for ; Mon, 4 Mar 2013 20:11:29 +0100 (CET) Original-Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r24JBT0U021371 for ; Mon, 4 Mar 2013 20:11:29 +0100 Original-Received: by mail-ee0-f45.google.com with SMTP id b57so4077332eek.18 for ; Mon, 04 Mar 2013 11:11:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=jB5CbRmIvE58+Ah8kEa8TZL83iyOEu81ap0cR4mPxJI=; b=yrN9eRlhHguuGCB30+3HePgOwGWmuFU+qWDPRihCgFMRbR0WInXXrGvGZuDRFw0a9G 642DYjxrrXtyjn0E6UjariiksqaNcv8mmJrlHprHVSYCjNtS6x6rcmhGRimj/rG59rSc 1QieTM5haKxKFvjH4sk1OgOcBK7bpGw0KLU7svDOesaNUE3+4ZTsaCgZCJwyFyMJcxS3 wP0RARFEuPwJuemuPA9Pds05KmG6EMr7YQgV1D/xwS4wd/toZlJERMyUZ9yugNs3PiUc kJ4KEBvbuNR9JN2MosgPc2bJe6JgxSumn3sZvmgVKUNTecgn4w9AdedW1xUpvsYD9EUW 9K2w== X-Received: by 10.15.23.193 with SMTP id h41mr62243961eeu.17.1362424288926; Mon, 04 Mar 2013 11:11:28 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4d07385d.pool.mediaWays.net. [77.7.56.93]) by mx.google.com with ESMTPS id k7sm33600196een.8.2013.03.04.11.11.26 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Mar 2013 11:11:27 -0800 (PST) In-Reply-To: <87y5e3qnd5.fsf@micropit.couberia.selfip.net> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.45; 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: 0NJ7vbt2Q - c62271cf62d5 - 20130304 (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:81033 Archived-At: Am 04.03.2013 um 14:57 schrieb Peter M=FCnster : > Hi, > = > How could I embed \startletter/\stopletter in a macro please? > = > This does not work: > = > --8<---------------cut here---------------start------------->8--- > \usemodule[letter] > \def\myStartLetter{\startletter} > \def\myStopLetter{\stopletter} > \myStartLetter > \input tufte > \myStopLetter > --8<---------------cut here---------------end--------------->8--- The module uses a buffer to store the content of the letter environment. What you can do is to create a new buffer for your environment and feed the content of this buffer to the letter module. \usemodule[letter] \startsetups[letter:section:content] \getbuffer[MyLetter] \stopsetups \setuplettersection[content][alternative=3Dsetups] \def\StartLetter {\starttext \grabbufferdata[MyLetter][StartLetter][StopLetter]} \def\StopLetter {\placeletter \stoptext} \StartLetter \input tufte \StopLetter 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 ___________________________________________________________________________= ________