From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40420 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Discussion: correspondence with ConTeXt Date: Thu, 17 Apr 2008 17:08:16 +0200 Message-ID: <115224fb0804170808q55541fa5g1a3fc5e7af62ea24@mail.gmail.com> References: <115224fb0804170113w70db8dadpb8528a18ef20c338@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208446079 13086 80.91.229.12 (17 Apr 2008 15:27:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2008 15:27:59 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 17 17:28:33 2008 connect(): Connection refused 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 1JmVkb-00018q-0C for gctc-ntg-context-518@m.gmane.org; Thu, 17 Apr 2008 17:10:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 581231FC77; Thu, 17 Apr 2008 17:09:32 +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 30951-01-16; Thu, 17 Apr 2008 17:08:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE4441FCB1; Thu, 17 Apr 2008 17:08:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EAC9B1FCB1 for ; Thu, 17 Apr 2008 17:08:53 +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 30951-01-15 for ; Thu, 17 Apr 2008 17:08:17 +0200 (CEST) Original-Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.185]) by ronja.ntg.nl (Postfix) with ESMTP id CEEE01FB82 for ; Thu, 17 Apr 2008 17:08:17 +0200 (CEST) Original-Received: by gv-out-0910.google.com with SMTP id n29so11476gve.1 for ; Thu, 17 Apr 2008 08:08:17 -0700 (PDT) Original-Received: by 10.150.228.12 with SMTP id a12mr1773878ybh.167.1208444896276; Thu, 17 Apr 2008 08:08:16 -0700 (PDT) Original-Received: by 10.150.49.21 with HTTP; Thu, 17 Apr 2008 08:08:16 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:40420 Archived-At: On Thu, Apr 17, 2008 at 4:12 PM, Idris Samawi Hamid wrote: > Hi Wolfgang, > > On Thu, 17 Apr 2008 02:13:54 -0600, Wolfgang Schuster > wrote: > > > Take the following minimal example > > > > \usemodule[letter] > > > > \setupletter > > [sender] > > [name={Mike Meiers}, > > address={Mustergasse 12\\25694 Musterstadt}] > > > > \setupletter > > [address] > > [name={Hans Hansen}, > > address={Zielweg 34\\78561 Tiny Town}] > > > > \starttext > > > > \startletter > > [opening={Dear Hans,}] > > > > letter text > > > > \stopletter > > > > \stoptext > > You need a closing ("Sincerely,") and signature, and don't forget enough > topspace to accommodate a company logo/letterhead :-) You set closing and signature also with the optional argument for \startletter \startletter [opening=Dear Idris\textcomma, closing=Sincerely\textcomma, signature=Wolfgang Schuster] You could define your own letterhead but by default I use just name and address from the sender. > FWIW: Here is the basic structure of my setup (based on someone else's > work, I forget his name): > ================= > \protect > > %\setuppapersize[A4][A4] > \setuppapersize[letter][letter] > > \setuplayout[header=.5in, > topspace=1.37in, > backspace=1.5in, > footer=0mm, > %header=0in, > %,width=middle, > width=middle, > lines=60, > height=middle] % margins etc. > > \setupbodyfontenvironment[default][em=italic] > \setuppagenumbering[state=stop] > > \long\def\addresser#1{\leavevmode\blank[1*line] > \lbox{#1}} > > % Defines field for receiver's address and places it at right position. > \long\def\addressee#1{\rbox{#1}} > > % Subject line, in bold face. > \long\def\lettersubject#1{\blank[2*line]{\BF %Re: > #1}} > > \long\def\letteropening#1{\blank[line]#1} % opening... > > \definestartstop > [letter] > [before={\blank[line]\setupwhitespace[medium]}, > after={}] > > \long\def\letterclosing#1#2{\vbox{\blank[line]#1\blank[3*line]#2}} % and > the closing formula > > \unprotect Simple but working solution but a formal german requires a little bit more work because most of the field use fixed positions whereas blocks styles are written from top to bottom and each field use only as much space as the text needs. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________