Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / groff / contrib / mom / momdoc / letters.html
1 <html>
2 <head>
3 <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
4 <title>Mom -- Document Processing, Writing Letters</title>
5 </head>
6 <body bgcolor="#dfdfdf">
7
8 <!====================================================================>
9
10 <a href="typemacdoc.html#TOP">Next</a>&nbsp;&nbsp;
11 <a href="cover.html#TOP">Prev</a>&nbsp;&nbsp;
12 <a href="toc.html">Back to Table of Contents</a>
13
14 <a name="TOP"></a>
15 <a name="LETTERS">
16         <h1 align="center"><u>WRITING LETTERS WITH MOM</u></h1>
17 </a>
18
19 <a name="LETTERS_INTRO">
20         <h2><u>Introduction</u></h2>
21 </a>
22
23 <strong>Mom</strong>'s simple but effective letter-writing
24 macros are a subset of the
25 <a href="docprocessing.html#DOCPROCESSING">document processing macros</a>,
26 designed to ease the creation of correspondence.
27 <p>
28 Because the letter macros are a subset of the document
29 processing macros, you can use
30 <a href="definitions.html#TERMS_CONTROLMACRO">control macros</a>
31 to design correspondence to your own specifications.  However,
32 <strong>mom</strong> makes no pretence of providing complete design
33 flexibility in the matter of letters, which are, after all, simple
34 communicative documents whose only real style requirements are that
35 they be neat and professional-looking.
36
37 <a name="TUTORIAL"><h2><u>Tutorial on writing letters</u></h2></a>
38
39 <strong>Mom</strong> letters begin, like all <strong>mom</strong>
40 processed documents, with a
41 <a href="docprocessing.html#REFERENCE_MACROS">reference macro</a>
42 (in this case,
43 <a href="docprocessing.html#AUTHOR">AUTHOR</a>),
44 a
45 <a href="docprocessing.html#DOCTYPE">DOCTYPE</a>
46 (<strong>LETTER</strong>, obviously), the essential
47 <a href="docprocessing.html#PRINTSTYLE">PRINTSTYLE</a>
48 macro, and
49 <a href="docprocessing.html#START">START</a>.
50 <p>
51 <pre>
52         .AUTHOR    "Yannick P. Guique"
53         .DOCTYPE    LETTER
54         .PRINTSTYLE TYPESET
55         .START
56 </pre>
57
58 <strong>PRINTSTYLE</strong>, above, could also be
59 <strong>TYPEWRITE</strong>.  <strong>Mom</strong> has no objection
60 to creating letters that look like they were typed on an Underwood
61 by a shapely secretary with great gams back in the 1940s.
62 <p>
63 After the <strong>START</strong> macro, you enter data pertinent to
64 your letter: the date, the addressee (in business correspondence,
65 typically both name and address), the addressor (that's you; in
66 business correspondence, typically both name and address), and a
67 greeting (in full, e.g. &quot;Dear Mr. Smith,&quot;).
68 <p>
69 The macros for entering the data are simple (they're not even
70 <a href="definitions.html#TERMS_TOGGLE">toggles</a>)
71 and entered in an intuitive order.
72 <br>
73 <ol>
74         <li><code>.DATE</code>
75         <li><code>.TO</code>
76         <li><code>.FROM</code>
77         <li><code>.GREETING</code>
78 </ol>
79 <p>
80 <strong>Mom</strong> ignores any you omit and spaces the letter's
81 opening according to what you do include.
82 <p>
83 Once you've filled in what you need to get a letter started, simply
84 type the letter, introducing each and every paragraph with the
85 <a href="docelement.html#PP">PP</a>
86 macro.
87 <p>
88 At the end of the letter, should you wish an indented closing
89 (&quot;Yours truly,&quot; &quot;Sincerely,&quot; &quot;Hugs and
90 kisses&quot;), invoke the macro <strong>CLOSING</strong> on a
91 line by itself and follow it with the text of the closing.  
92 <strong>N.B.</strong> Don't put your name here; <strong>mom</strong>
93 supplies it automatically from <strong>AUTHOR</strong> with
94 enough space to leave room for your signature.
95
96 <p>
97 Assuming our tutorial letter is for business correspondence,
98 here's what the complete letter looks like.
99 <p>
100 <pre>
101         .AUTHOR    "Yannick P. Guique"
102         .DOCTYPE    LETTER
103         .PRINTSTYLE TYPESET
104         .START
105         .DATE
106         August 25, 2004
107         .TO
108         GUILLAUME BARRIÈRES
109         Minidoux Corporation
110         5000 Pannes Drive
111         Redmond, Virginia
112         .FROM
113         Y.P. GUIQUE
114         022 Umask Road
115         St-Sauveur-en-dehors-de-la-mappe, Québec
116         .GREETING
117         Dear Mr. Barrières,
118         .PP
119         It has come to my attention that you have been lobbying the
120         US government to prohibit the use of open source software by
121         endeavouring to outlaw so-called &quot;warranty free&quot;
122         applications.
123         .PP
124         I feel it is my duty to inform you that the success of your
125         operating system with its embedded web browser relies heavily
126         on open source programs and protocols, most notably TCP/IP.
127         .PP
128         Therefore, in the interests of your corporation's fiscal health,
129         I strongly advise that you withdraw support for any US
130         legislation that would cripple or render illegal open source
131         development.
132         .CLOSING
133         Sincerely,
134 </pre>
135 <hr>
136
137 <a name="LETTERS_DEFAULTS">
138         <h2><u>Defaults for letters</u></h2>
139 </a>
140
141 In letters, <strong>mom</strong> sets:
142 <p>
143 <ol>
144         <li>the date flush right, page right, at the top of page one
145         <li>the addressee in a block flush left, page left
146         <li>the addressor in a block flush left, page left
147         <li>the greeting flush left
148         <li>the body of the letter justified
149         <li>in multi-page letters:
150         <ul>
151                 <li>a footer indicating there's a next page (of the form <code>.../#</code>)
152                 <li>the page number at the top of every page after page one
153         </ul>
154         <li>the closing/signature line flush left, indented halfway across the page
155 </ol>
156 <p>
157 Other important style defaults are listed below, and may be changed
158 via the
159 <a href="typesetting.html#MACROS_TYPESETTING">typesetting macros</a>
160 or the document processing
161 <a href="definitions.html#TERMS_CONTROLMACRO">control macros</a>
162 prior to
163 <a href="docprocessing.html#START">START</a>.  Assume that any
164 style parameter not listed below is the same as for
165 <a href="docprocessing.html#TYPESET_DEFAULTS">PRINTSTYLE TYPESET</a>
166 or
167 <a href="docprocessing.html#TYPEWRITE_DEFAULTS">PRINTSTYLE TYPEWRITE</a>.
168 <p>
169 <pre>
170 PARAMETER             PRINTSTYLE TYPESET   PRINTSTYLE TYPEWRITE
171 ---------             ------------------   --------------------
172
173 Paper size            8.5 x 11 inches      8.5 x 11 inches
174 Left/right margins    1.25 inches          1.25 inches
175 Header margin         3.5 picas            3.5 picas
176  (for page numbers)
177 Header gap            3 picas              3 picas
178  (for page numbers)
179 Family                Times Roman          Courier
180 Font                  roman                roman
181 Point size            12                   12
182 Line space            13.5                 12 (i.e. singlespaced)
183 Paragraph indent      3 ems                3 picas
184 Spaced paragraphs     yes                  no
185 Footers*              yes                  yes
186 Footer margin         3 picas              3 picas
187 Footer gap            3 picas              3 picas
188 Page numbers          top, centered        top, centered
189
190 *Footers contain a &quot;next page&quot; number of the form .../#
191 </pre>
192 <hr>
193
194 <a name="LETTERS_MACROS">
195         <h2><u>The letter macros</u></h2>
196 </a>
197
198 All letter macros must come after
199 <a href="docprocessing.html#START">START</a>,
200 except <strong>NO_SUITE</strong>.
201 <p>
202 <ul>
203         <li><a href="#DATE">DATE</a>
204         <li><a href="#TO">TO</a>
205         <li><a href="#FROM">FROM</a>
206         <li><a href="#GREETING">GREETING</a>
207         <li><a href="#CLOSING">CLOSING</a>
208         <li><a href="#NO_SUITE">NO_SUITE</a> -- &quot;next page&quot; number off
209 </ul>
210
211 <!---DATE--->
212
213 <hr width="66%" align="left">
214 <p>
215 <a name="DATE"></a>
216 Macro: <strong>DATE</strong>
217
218 <p>
219 Invoke <strong>DATE</strong> on a line by itself, with the date
220 underneath, like this:
221 <p>
222 <pre>
223         .DATE
224         October 31, 2002
225 </pre>
226
227 <!---TO--->
228
229 <hr width="66%" align="left">
230 <p>
231 <a name="TO"></a>
232 Macro: <strong>TO</strong>
233
234 <p>
235 Invoke <strong>TO</strong> on a line by itself, with the name
236 and address of the addressee underneath, like this:
237 <p>
238 <pre>
239         .TO
240         JOHN SMITH
241         10 Roberts Crescent
242         Bramladesh, Ont.
243 </pre>
244
245 <!---FROM--->
246
247 <hr width="66%" align="left">
248 <p>
249 <a name="FROM"></a>
250 Macro: <strong>FROM</strong>
251
252 <p>
253 Invoke <strong>FROM</strong> on a line by itself, with the name
254 and address of the addressor underneath, like this:
255 <p>
256 <pre>
257         .FROM
258         JOE BLOW
259         15 Brunette Road
260         Ste-Vieille-Andouille, Québec
261 </pre>
262
263 <!---GREETING--->
264
265 <hr width="66%" align="left">
266 <p>
267 <a name="GREETING"></a>
268 Macro: <strong>GREETING</strong>
269
270 <p>
271 Invoke <strong>GREETING</strong> on a line by itself, with the
272 full salutation you want for the letter, like this:
273 <p>
274 <pre>
275         .GREETING
276         Dear Mr. Smith,
277 </pre>
278
279 <!---CLOSING--->
280
281 <hr width="66%" align="left">
282 <p>
283 <a name="CLOSING"></a>
284 Macro: <strong>CLOSING</strong>
285
286 <p>
287 Invoke <strong>CLOSING</strong> on a line by itself after the
288 body of the letter, with the closing you'd like (e.g. &quot;Yours
289 truly,&quot;), like this:
290 <p>
291 <pre>
292         .CLOSING
293         Yours truly,
294 </pre>
295
296 <!---NO_SUITE--->
297
298 <hr width="66%" align="left">
299 <p>
300 <a name="NO_SUITE"></a>
301 Macro: <strong>NO_SUITE</strong>
302
303 <p>
304 If you don't want <strong>mom</strong> to print a &quot;next
305 page&quot; number at the bottom of multi-page letters, invoke
306 <code>.NO_SUITE</code>, on a line by itself, prior to
307 <a href="docprocessing.html#START">START</a>.
308
309 <p>
310 <hr>
311 <a href="typemacdoc.html#TOP">Next</a>&nbsp;&nbsp;
312 <a href="cover.html#TOP">Prev</a>&nbsp;&nbsp;
313 <a href="#TOP">Top</a>&nbsp;&nbsp;
314 <a href="toc.html">Back to Table of Contents</a>
315 </body>
316 </html>