From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50166 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Multiple letters Date: Sun, 10 May 2009 14:32:46 +0200 Message-ID: <6608E28C-6DB7-4683-B174-5F359134A298@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="windows-1252"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1241958843 28486 80.91.229.12 (10 May 2009 12:34:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 May 2009 12:34:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 10 14:33:53 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M38E4-0001TE-TL for gctc-ntg-context-518@m.gmane.org; Sun, 10 May 2009 14:33:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 898171FC66; Sun, 10 May 2009 14:33:51 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25744-07; Sun, 10 May 2009 14:33:07 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5484A1FDCD; Sun, 10 May 2009 14:33:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 74D6C1FDCD for ; Sun, 10 May 2009 14:33:05 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27410-06-2 for ; Sun, 10 May 2009 14:32:52 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id A26DF1FDCC for ; Sun, 10 May 2009 14:32:52 +0200 (CEST) Original-Received: from mail-ew0-f173.google.com (mail-ew0-f173.google.com [209.85.219.173]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4ACWpHo028587 for ; Sun, 10 May 2009 14:32:52 +0200 Original-Received: by ewy21 with SMTP id 21so2990775ewy.2 for ; Sun, 10 May 2009 05:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=m54oPh5gJdSZQpC6c3C1cbCkiRDXuadnOnHp8EccHsc=; b=lpWyTwK43j4Ol7gNZZvUwN6tGD41S3hkQRKgiUJPCE8t1QmxntSm3qdywr4Ugau2RN 6cDrceCOjttAY+Ih37hoyQRNQ9Xr6Xq6JrEn9AL2gt23Uyxl+iISjzQ0gkTcdj9pAgNB j0aoPyil6d6jfx3dZ/pMScDuWG64l+cn09M8c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=JnZfp1JBnr/daD8zDlSTa6JEbIvaz88rQ7Nle28ZDUp5w40fX64SqwvKgdFcw6YGl+ DZCG7QyA/VrmPbacCMo1Nwwsb9IDzcXAyo+hMafFDh4/einz/QBLBrvR39Q+MD5/tPT1 azSJ2NSDNi/ooquLAZWLhUBpoZh7c8mh9vEWg= Original-Received: by 10.210.86.10 with SMTP id j10mr7385898ebb.1.1241958768508; Sun, 10 May 2009 05:32:48 -0700 (PDT) Original-Received: from ?192.168.0.11? (mna75-3-82-66-231-76.fbx.proxad.net [82.66.231.76]) by mx.google.com with ESMTPS id 7sm5592420eyg.47.2009.05.10.05.32.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 10 May 2009 05:32:48 -0700 (PDT) X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.173; 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: 222424142 - d70c789593ef - 20090510 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50166 Archived-At: Hi all, I have to write a letter to a few dozens candidates in which some = parts are not identical. I may have the list of the persons, and the = changing part for each of them in a file (named for instance "list-of- = candidates.tex") on which each line corresponds to one person and the = fields are sperated by commas (or any other suitable character). What = would be the best way of coding this in ConTeXt? Here is the example I have in mind: %%% begin the body of the letter Dear \MmeOrSir\ \FirstName\ \FamilyName, We have received your application and we thank you for your interest = in our institution. \AnswerToApplication. With our best regards, etc=85 %%% end the body of the letter The four commands \MmeOrSir, \FirstName, \FamilyName, = \AnswerToApplication should correspond to the columns 1 through 4 of = each line of the file "list-of-candidates.tex" as follows: %%% begin list-of-candidates.tex Madam , Joan , of Arc , {You will be interviewed very soon} Mr , Groucho , Marx , {We are sorry, but this position is only for non = smoking candidates} \endinput %%% end list-of-candidates.tex Thank you for help: OK ___________________________________________________________________________= ________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________