![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
On Thu, Apr 17, 2008 at 4:12 PM, Idris Samawi Hamid
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