From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26255 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: Example of correspondence Date: Mon, 6 Mar 2006 18:34:05 +0100 Message-ID: <6faad9f00603060934w680eb399u4d5f324c963f49de@mail.gmail.com> References: <200603031326.00473.vdemart1@tin.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141668079 32501 80.91.229.2 (6 Mar 2006 18:01:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 18:01:19 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 06 19:01:18 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FGK0n-0007s5-78 for gctc-ntg-context-518@m.gmane.org; Mon, 06 Mar 2006 19:00:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 64D151279E; Mon, 6 Mar 2006 19:00:49 +0100 (CET) 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 02066-03-4; Mon, 6 Mar 2006 19:00:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 08E4812798; Mon, 6 Mar 2006 19:00:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C4FC512798 for ; Mon, 6 Mar 2006 19:00:05 +0100 (CET) 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 02066-03-3 for ; Mon, 6 Mar 2006 19:00:04 +0100 (CET) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by ronja.ntg.nl (Postfix) with SMTP id 6F7F212792 for ; Mon, 6 Mar 2006 19:00:03 +0100 (CET) Original-Received: by nproxy.gmail.com with SMTP id y25so936187nfb for ; Mon, 06 Mar 2006 10:00:02 -0800 (PST) Original-Received: by 10.48.3.3 with SMTP id 3mr1159972nfc; Mon, 06 Mar 2006 09:34:05 -0800 (PST) Original-Received: by 10.48.202.1 with HTTP; Mon, 6 Mar 2006 09:34:05 -0800 (PST) Original-To: "mailing list for ConTeXt users" In-Reply-To: <200603031326.00473.vdemart1@tin.it> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:26255 Archived-At: On 3/3/06, vittorio wrote: > I have rread the document on correspondence from ConTeXt site to no avail. > What I need is a very small, working, complete example of a textmerge > operation with context. > Where can I find anything of the kind in the net? > Thanks. > Vittorio You said that you did it in LaTeX. Perhaps try to explain what you did or what you would like to do that LaTeX didn't offer you. I suppose that solving your problem should be simple enough, but you have to tell a bit more about it: what kind of input data you have (from database, manually typeset?), what troubles you (for example if you don't know how to typeset certain parts of your letter, so that it will look nice, ...), ... There are numerous possibilities. In contrast to Word you have a magic keyword "\def" in TeX, which means that you can define your own commands and do just about every trickery with it. I don't know if I even understood you properly. Here's a very small ugly example of how you could typeset hundreds of more-or-less equal pages to be printed. It has no design, but you have to tell how and what you want before people can help you further. % start new page & supress page numbering \setuphead[subject][page=yes] \setuppagenumbering[location=] % here you have to define the body of your letter \def\TypesetALetter#1#2{% \subject{Dear #1,} You are invited to #2. \blank[medium] \midaligned{Vittorio}% } % define a special kind of a letter \def\PartyInvitation#1{% \TypesetALetter{#1}{a party next week} } \starttext \TypesetALetter{Alex}{join me on the trip on Sunday} \TypesetALetter{sister}{a very special event next week} \PartyInvitation{Ann} \PartyInvitation{Betty} \PartyInvitation{Sue} \stoptext For input you can also use XML, comma separated values (whatever is more handy for you), the design, content and input data can be completely independent ... But you have to be more precise in specifying your requirements & problems. People on the list are really friendly, but perhaps you asked too general question. Mojca