Changes

Jump to navigation Jump to search
2,332 bytes added ,  21:00, 26 January 2009
New letter style.
File
\stopCC
 
\stoptext
</texcode>
 
==Letterhead==
 
The following style was presented in the PracTeX Journal by Joseph Hogg, you find the article under the following link:
 
* http://www.tug.org/pracjourn/2006-3/hogg/
 
<texcode>
% Context file for letterhead
\setuppapersize[letter][letter]
\setuplayout[height=9in,backspace=80pt,location=middle]
\setupbodyfont[serif,12pt] \setupwhitespace[big]
\setupcolors[state=start]
% Set up addressee here, From and Date
\define\Toperson{A. U. Thor}
\define\Totitle{Editor}
\define\Tocompany{Great \TeX\ Journal}
\define\Tostreet{P. O. Box 3.1415926}
\define\TocityStateZip{\TeX town, 67890-12345}
\define\Tocountry{USA}
\define\Fromperson{Ben Lee User}
\define\Mydate{\currentdate}
% End addressee, From and Date
\setupheader[state=none] \setupfooter[state=empty]
\setupfootertexts[{\ssx {\Mydate} --- {\em from}
{\Fromperson} {\em to} {\Toperson} --- page {\pagenumber}
of {\totalnumberofpages}}]
%\showframe
%\showboxes
%\showsetups
 
\starttext
% Heading
{\ssb Ben Lee User} \hfill {\ssx voice: (123) 456-7890}\crlf {\ssx P. O.
Box 2.718281} \hfill {\ssx fax: (123) 456-7891}\crlf
{\ssx Punktown, 12345-67890} \hfill {\ssx email: ben.lee.user@tex.edu}%
\textrule \blank[10*medium]
% Address
\Toperson\crlf \Totitle\crlf \Tocompany\crlf \Tostreet\crlf
\TocityStateZip%\crlf
%\Tocountry
\blank[8*medium] \textrule
% Letter
\hfill\Mydate \blank[2*big]
 
Dear Thor:
 
Here's a setup for a business or personal letter that produces a
letterhead and the addressee's information on the letter. This allows
the sender to use envelopes with windows to avoid separately addressing
envelopes. I usually print a dozen or so of these envelopes with my
return address in advance.
 
Vertical spacing of addresses and other features is controlled by the
\type{\blank[..]} command. I experiment with this depending on the
number of lines in the address or where I want to place horizontal
lines.
 
% Jump to a new page to see the footer
I'll jump to a new page to illustrate the footer for the second and
subsequent pages. \page
 
There is no footer on the first page and no page number. Many letters
are only one page long. But on those with two or more pages, it is
useful to have page numbers and other identifying information.
 
\blank[2*big]
 
Very truly yours,
 
[signature space]
 
\blank[4*big]
 
Ben Lee User
\stoptext
gardener
110

edits

Navigation menu