summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/latex2e-html/ltx-91.html
blob: 1aaa58df93af845cdfb46938806e9448c8a9492e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<html>
<head><title>Help On LaTeX Letters</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#000099" vlink="#cc0000" alink="#cc0000">
<h1><font size="-2">Hypertext Help with LaTeX</font><br><font color="#cc0000">Letters</font></h1>
 You can use LaTeX to typeset letters, both personal and business.  The
 letter document style is designed to make a number of letters at once,
 although you can make just one if you so desire.
<p>
 Your *.tex  source  file  has the same  
 <a href="input.html#structure">minimum  commands</a>  as the other
 document  styles,  i.e.,  you must have  the following  commands  as a
 minimum:
<pre>
  <tt>\documentstyle{letter}
  <a href="ltx-315.html">\signature{Your Name}</a> 
  <a href="ltx-93.html">\address{Return address}</a>
  \begin{document}
  ... First letter ...
  ... Second letter ...
  ...
  \end{document}</tt>
</pre>
Note that the <tt>\address</tt> and <tt>\signature</tt> commands are
<a href="declarations.html">declarations</a> and follow the usual
scope rules.  They are generally placed in the preamble, as indicated here,
and apply to all letters in the file.
<p>
 Each letter is a letter  <a href="ltx-27.html">environment</a>,
 whose argument  is the name and
 address of the recipient.  For example, a typical letter might have<pre>
   <tt>\begin{letter}{Mr. John Doe \\ 2345 Jones St. 
         \\ Oakland, CA  91123}
   <a href="ltx-97.html">\opening{Dear John,}</a>
     ...
     text of letter 
     ...
   <a href="ltx-98.html">\closing{Best regards,}</a>
   \end{letter}</tt>
</pre>
 The letter itself begins with the 
 <a href="ltx-97.html"><tt>\opening</tt></a>  command.   The text of the
 letter follows.   It is typed as ordinary LaTeX input.  Commands  that
 make no sense  in a letter,  like <tt>\chapter,</tt>  don't  work.   The letter
 closes with a 
 <a href="ltx-98.html"><tt>\closing</tt></a> command.
<h2>Closing matter</h2>
 Several commands may be used after the <tt>\closing</tt> command:
<ul>
<li><tt>\ps{PS text}</tt> command produces a "P.S."
<li><tt>\cc{text}</tt> command produces  the usual "cc: text". 
<li><tt>\encl{list of enclosures}</tt> command produces an "encl:" list
</ul>
<h2>Date</h2>
The <a href="ltx-330.html"><tt>\today</tt></a> command is used by the
letter <a href="ltx-22.html">document style</a> to generate the date.
If you wish a fixed date, rather than the current date, you should use<pre>
   <tt><a href="ltx-18.html">\renewcommand</a>{\today}{Month day, year}</tt>
</pre>
This may be put in the preamble if it is to apply to all letters in the
file, or just before the <tt>\opening</tt> command if it is to apply to
just that letter.
<hr>
See also
<ul>
<li><a href="ltx-93.html"><tt>\address</tt></a>
<li><A href="ltx-98.html"><tt>\closing</tt></A>
<li><a href="ltx-261.html"><tt>\location</tt></a>
<li><A href="ltx-97.html"><tt>\opening</tt></A>
<li><a href="ltx-315.html"><tt>\signature</tt></a>
<li><a href="ltx-323.html"><tt>\telephone</tt></a>
</ul>
Return to the <a href="ltx-2.html">LaTeX Table of Contents</a>
<address>
Revised: Sheldon Green, 24 Jun 1995.
</address>
</body>
</html>