From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61302 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Recursive printing letters using Letters module... Date: Sun, 29 Aug 2010 09:02:18 +0200 Message-ID: <0763D961-1B12-4FB6-8A6A-AB5C12471F14@gmail.com> References: <4C79AB0D.9020009@gyza.cz> <4C79B59B.6080807@gyza.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283065371 752 80.91.229.12 (29 Aug 2010 07:02:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Aug 2010 07:02:51 +0000 (UTC) To: hajtmar@gyza.cz, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 29 09:02:48 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Opbug-0007ut-Au for gctc-ntg-context-518@m.gmane.org; Sun, 29 Aug 2010 09:02:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8EB8CCA5B0; Sun, 29 Aug 2010 09:02: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 9m3raiIr4Zlz; Sun, 29 Aug 2010 09:02:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46A59CA596; Sun, 29 Aug 2010 09:02:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 383CACA596 for ; Sun, 29 Aug 2010 09:02:41 +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 Z00mbgDwDjUB for ; Sun, 29 Aug 2010 09:02:29 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 8CFC6CA593 for ; Sun, 29 Aug 2010 09:02:29 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7T72SFZ029775 for ; Sun, 29 Aug 2010 09:02:28 +0200 Original-Received: by bwz6 with SMTP id 6so3769352bwz.14 for ; Sun, 29 Aug 2010 00:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=Hucgtb7bvYsiQHDKOyLwB3t9a229XM2+hEwhXEqAM74=; b=uc6f7hIMgY9vLJb5V15+GyoaryVScAvLSPZel87YbSGVky+Ue8m64fahKRReoTrYoY 2v1voMqMv3vRv3ujLRadAgqIxRdkN1fLfQZsBMAe53BteHvwXdONr58mnY90CCat6Qgc KkQliA4MnqcrQYbgjtk/2mpWSYjlEUwRLhm1s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=XzxnbVq8wTAyO4ErpREB190qYnHekLZJSlpwSm0JtPgMVp4xpdu49XcwJbqdBAWXUv mUANPo+TIP8LItBtMD1s+aiztHNosCs22DU8qTxUSoY5dwuojaIejF0NufKMvoC6e6pO oThIv3ajJVSLep7doJSDseoEj3GjTVKXxeHJM= Original-Received: by 10.204.63.9 with SMTP id z9mr2055264bkh.66.1283065348121; Sun, 29 Aug 2010 00:02:28 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B292F18.dip.t-dialin.net [91.41.47.24]) by mx.google.com with ESMTPS id y2sm4068704bkx.20.2010.08.29.00.02.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 29 Aug 2010 00:02:27 -0700 (PDT) In-Reply-To: <4C79B59B.6080807@gyza.cz> X-Mailer: Apple Mail (2.1081) 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: 05D072sBl - 41cfa5c9089e - 20100829 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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:61302 Archived-At: Am 29.08.2010 um 03:19 schrieb Jaroslav Hajtmar: > Hello > I answer it yourself. I was experimented and thought about using buffers = and the problem is successfully for my library resolved :-) > I think that I found an interesting use of the letter module... > = > Jaroslav > = > Only for example : > = > [...] > = > \startbuffer[myletter] > \startletter[ > toname=3D{\Firstname\ \Name}, > toaddress=3D{\Street\\ \Zipcode\ \Town}, > opening=3D{Dear \Firstname,}, > subject=3D{Step by step guide to write a letter to \Firstname\ \Name}, > closing=3D{{\color Greetings from the Author} to \Name\ \Firstname}] > = > Thus, I came to the conclusion ... \Mygreeting > = > \stopletter > \stopbuffer You can=92t use buffers inside \dorecurse and the letter environment is a buffer with a few extension to accept a argument for values. You can get around this with the alternative mode for the environment with is enabled by: \setupletterstyle[option][method=3Dcontent] % \setupletteroptions[method=3D= content] \dorecurse{5} {... \startletter [toname=3D{\Firstname\ \Name}, toaddress=3D{\street\\\Zipcode\ \Town}, ...] This, I came to the conclusion =85 \Mygreeting \stopletter ...} The disadvantage is that \startlines or \starttyping can't be used anymore inside of a letter. The second method you can use is to drop the letter environment and set the values for the address and name with \setupletter and store the content with the lettercontent environment (just a names buffer). The letter itself can now be flushed with \setups[letter:place]. \setupletter [toname=3D{\Firstname\ \Name}, toaddress=3D{\street\\\Zipcode\ \Town}, ...] \startlettercontent This, I came to the conclusion =85 \Mygreeting \stoplettercontent \dorecurse{5}{...\setups[letter:place]...} 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 ___________________________________________________________________________= ________