Debian Codegraph @

texmf-dist/doc/otherformats/texsis/base/TXSletr.doc

raw
1 %% file: TXSletr.doc - Letters and Memos - TeXsis 2.18
2 %% @(#) $Id: TXSletr.doc,v 18.3 2000/06/01 21:54:30 myers Exp $
3 %======================================================================*
4 % (C) Copyright 1989, 1992, 1994, 1997 by Eric Myers and Frank E. Paige
5 % This file is a part of TeXsis. Distribution and/or modifications
6 % are allowed under the terms of the LaTeX Project Public License (LPPL).
7 % See the file COPYING or ftp://ftp.texsis.org/texsis/LPPL
8 %======================================================================*
9 \ifx\undefined\bs \texsis\input TXSdocM.doc\input Manual.aux\draft\fi
10
11
12 \section{Letters, Memos and Referee Reports \label{sect.letr}}
13
14 The commands \CS{letter}, \cs{memo}, \cs{referee} and
15 \cs{formLetters} invoke special styles for producing letters or
16 memos.
17 The letter formats follow closely the letter format given in
18 Appendix~E of \TeXbook, although there are some differences and some
19 additions.
20 \index{letters}
21
22
23 \subsection{Letters}
24
25 \CS{letter} is designed for typing basic business-style letters
26 on letterhead stationary. It uses the following commands:
27 \description{~closing\qquad}\clump
28
29 \itm{\CS{letter}}
30 Initialize the letter format.
31
32 \itm{\CS{dated}\arg{date}}
33 Sets the current date to be \meta{date} rather than today's date.
34 This redefines \cs{today} to be the date you give. If omitted,
35 \cs{today} just gives the current date.
36
37 \itm{\CS{withEnvelope}}
38 Signals that an envelope should also be printed.
39 See Section~\use{sect.env} to find out how this works.
40
41 \itm{\CS{letterhead}\arg{phone-ext}}
42 Puts the date and phone number \<phone-ext> at the top of the page, so
43 that it will appear near the letterhead when the letter is printed on
44 your institutional stationary.
45
46 \itm{\CS{address}}
47 The name and address of the recipient should follow, in \cs{obeylines}
48 format. The first line is used as the name of the addressee in a running
49 headline for pages after the first.
50
51 \itm{\CS{body}}
52 Begins the body of the letter. The line immediately below this should
53 be the opening salutation, (e.g. ``Dear Ann Landers,'').
54
55 \itm{\CS{closing}}
56 Begins the closing material, in \cs{obeylines} format. The first line
57 following is the closing salutation (e.g. "Sincerely Yours,") and the
58 second is the sender's name. When the letter is printed, room is left
59 for a signature. Optional additional lines can be added after the name
60 for the sender's title, or similar information.
61
62 \itm{\CS{annotations}}
63 Optional annotations follow, in \cs{obeylines} format.
64
65 \itm{\CS{cc}}
66 Carbon copy. A "cc:" and the names following are printed,
67 properly aligned.
68
69 \itm{\CS{Encl}}
70 Enclosure. This is like \CS{cc} but "Encl:" is printed
71 for a list of enclosures.
72
73 \itm{\CS{ps}}
74 Optional postscript follows. This is not in \cs{obeylines} format.
75
76 \itm{\CS{endletter}\qquad}
77 Ends the letter. You can say \cs{bye} instead.
78 \enddescription
79
80 The \CS{letter} document format automatically sets up a running headline
81 for all pages after the first, containing the addressee's name (taken
82 from the first line following \cs{address}), the date, and the page
83 number. If you wish, you can turn off these running headlines by saying
84 \cs{nopagenumbers}. If you want to change the name of the addressee you
85 can simply redefine the macro called \CS{addressee} anytime after
86 \cs{address} has been used (using \cs{gdef}, so that the re-definition
87 exists outside of the group used to enclose the address). Or, if you
88 don't want the person's name used at all, simply redefine \CS{addressee}
89 to be empty, like so: |\gdef\addressee{}|.
90
91 \bigskip
92
93 The use of some of these macros is illustrated by the following
94 example:
95 \TeXexample
96 \texsis
97 \letter
98 \dated{1 April 1999}
99 \letterhead{7734}
100 \address
101 Prof.~D. Knuth
102 Stanford University
103 Stanford, CA~94305
104 \gdef\addressee{Knuth, the \TeX\ God}
105 \body
106 Dear Prof.~Knuth:
107
108 We enclose the documentation and source code for a \TeX\
109 macro package which we have developed for physics papers.
110
111 \closing
112 Sincerely yours,
113 Eric Myers
114 Frank E.~Paige
115 \ps This stuff is also available by anonymous ftp.
116 \endletter
117 |endTeXexample
118
119 By default the closing material is indented about 3.5 inches.
120 The actual amount is set by \CS{longindent}, which you can change.
121 You should put the change on the same line as the \CS{closing},
122 like so:\index{letters!adjusting size}
123 \TeXexample
124 \closing\longindent=0pt
125 Sincerely yours,
126 Joe User
127 |endTeXexample
128 \noindent
129 This example puts the closing material flush with the left margin. You
130 should not put \CS{longindent}|=0pt| on the line following, because
131 \CS{closing} uses that line as the closing salutation (like
132 ``Sincerely,'').
133
134 The default ``letterhead'' created by \CS{letterhead} is pretty plain --
135 it just puts the date and phone number at the top of the page. The
136 idea is that you can put your own office letterhead stationary in the
137 printer and when you print the letter on this paper the date and phone
138 number will be in an appropriate position.\Footnote*{If you can't put
139 stationary in your printer you can copy it onto stationary with a
140 copying machine.}
141 Alternatively, you can create a different letterhead macro to actually
142 print a letterhead at the top of the page. The physics department at
143 Excited State University could have a custom |\ESUletterhead| macro
144 which prints their logo and letterhead (it should still take a phone
145 number as an argument, to make it easier to switch between
146 |\ESUletterhead| and |\letterhead|.) These kind of custom macro
147 definitions should be put in a local site file, as described in
148 Appendix~\use{install}.
149
150 If a letter is somewhat too short or too long to fit on a page,
151 its length can be adjusted indirectly by changing the width of the text.
152 To do this insert \CS{letterwidth}\arg{width} immediately after
153 \cs{letter} to set the width of the text.
154 Not only does this change the \cs{hsize} to the size you specify, but it
155 also adjusts the margins and centers the text appropriately (so it is
156 preferable to simply changing the \cs{hsize}).
157
158 \bigskip
159
160 A simple Unix shell script called \idx{{\tt letr}} is included with
161 the current \TeXsis\ distribution to make it easier to compose
162 letters.
163 Saying
164 \TeXexample
165 letr -m Hutu |endTeXexample will create a template file |Hutu.tex|, if
166 there is not already a file by that name, and then start you editing
167 the file.
168 It then automatically runs your file through \TeXsis, and the envelope
169 file too if it exists (see the next section).
170 The |-m| flag, which is optional, should tell your printer to go into
171 ``manual feed'' mode to wait for you to feed in your own stationary.
172 (Manual feed mode is always selected for an envelope printed by |letr|.)
173
174 Keep in mind that this only works on Unix and the script
175 has to be executable and exist in your ``path''. Ask a local wizard
176 for help if you don't know what this means.
177
178
179 %======================================================================*
180
181 \subsection{Envelopes \label{sect.env}}
182
183 Many laser printers can print on envelopes, as long as you arrange to
184 put the address and return address in the right place, and print the
185 material in ``landscape'' mode (turned 90\degree\ on the page).
186 The simplest way to do this is to simply say \CS{withEnvelope} at the
187 beginning of your file, after the \cs{letter}.
188 When you run your letter through \TeXsis, it will then create a file
189 with the same name but an extension of |.env|, which contains the
190 commands to print the envelope.
191 Run {\sl that} file through \TeXsis\ and print the output in landscape
192 mode and you will get your envelope.
193 If you are using |dvips| the appropriate command is
194 \example
195 |dvips -m -t landscape myfile.dvi|
196 \endexample
197 The ``|-t landscape|'' rotates the output, while the ``|-m|'' puts the
198 printer in manual feed mode so that you can feed in the envelope.
199
200 You will have to figure out how your printer wants the envelopes to be
201 fed to it.
202 Some take the envelope down the middle, while others want it over to
203 one side or another.
204 You can adjust for different envelope sizes, or shift the position of
205 the printing over a bit to make it easier to feed in the envelope, by
206 changing the parameters \CS{EnvlWidth}, \CS{EnvlHeight}, and
207 \CS{ENvlVoffset}. The default values are
208 \TeXexample
209 \newdimen\EnvlWidth \EnvlWidth=24cm
210 \newdimen\EnvlHeight \EnvlHeight=10.5cm
211 \newdimen\EnvlVoffset \EnvlVoffset=1.25in
212 |endTeXexample
213
214 The actual printing of the envelope is done by the macro
215 \CS{MakeEnvelope}, which takes two arguments.
216 The first is the address, while the second is the return address.
217 Line endings in either are respected, or you can use \cs{n} to cause a
218 line break.
219
220 Saying \CS{withEnvelope} simply causes a \CS{MakeEnvelope} command to
221 be written to the |.env| file when you say \cs{endletter} or \cs{bye}.
222 You can edit that file before your run it through \TeXsis\ if you
223 don't like the form of the address or return address.
224 Alternatively, \CS{withEnvelope} will use the two macros
225 \CS{theSignature} and \CS{ReturnAddress} to construct the return
226 address.
227 The default value for \CS{theSignature} is taken to be the name
228 appearing after the closing salutation, below \cs{closing}.
229 If you want to change it to something else you should include a new
230 definition {\em after} the \cs{closing}, using |\gdef|.
231 For example,
232 \TeXexample
233 \closing
234 Sincerely yours,
235 Joe User
236 \gdef\theSignature{Joe's Mamma}
237 |endTeXexample
238 This would use ``Joe's Mamma'' as the name on the return address,
239 even though ``Joe User'' would appear in the closing of the letter.
240
241
242
243 %======================================================================*
244 \pagecheck{0.5\vsize}
245
246 \subsection{Memos \label{sect.memo}}
247
248 Saying \CS{memo} sets up a special format for memoranda,
249 including a header at the top of the page with the name of your
250 organization and the word "MEMORANDUM". The organization name defaults
251 to \cs{ORGANIZATION}, which you can change if you like simply by
252 saying \index{memos}
253 \example
254 |\def|\cs{ORGANIZATION}\arg{name}
255 \endexample
256 (This can be done once in the file |TXSsite.tex| before compiling
257 \TeXsis, as described in
258 Appendix~\use{install},\index{memos!customization} or you can explicitly
259 put the name of your organization in your file.) The commands for the
260 memo format are:
261 \description{Xendmemo\quad}\clump
262 %
263 \itm{\CS{memo}}
264 Initialize \TeXsis\ for memo format.
265 %
266 \itm{\CS{faxmemo}}
267 A document format similar to \CS{memo}, but for faxes.
268 Included in the header is a space to enter the number of pages sent.
269 A return fax number is also included if it is defined in
270 \CS{FaxNumber}.
271 %
272 \itm{\CS{Date}}
273 Prints the word "{\twelvess Date:}" and the date, which must be on the
274 same line. If no date is given, then the current date is used, as given
275 by \cs{today}. If you would rather have the date in the upper right hand
276 corner, as in a letter, use |\letterdate| instead of \CS{Date}.
277 %
278 \itm{\CS{To}}
279 Prints the word "{\twelvess To:}" and the name(s) which follow.
280 %
281 \itm{\CS{From}}
282 Prints the word "{\twelvess From:}" and the name(s) which follow
283 %.
284 \itm{\CS{Subj}}
285 Prints the word "{\twelvess Subject:}" and the subject which
286 follows. The subject may be several lines long. The first line
287 of the subject field is used in a running headline at the top of
288 all pages following the first.
289 %
290 \itm{\CS{FAX}}
291 Prints ``{\twelvess FAX \#:},'' for entering a fax telephone number.
292 %
293 \itm{\cs{n}}
294 New line for |\To|, |\From|, or |\Subj|.
295 %
296 \itm{\CS{nopagenumbers}}
297 Turns off the running subject headlines and the page numbers.
298 This must be typed after |\memo| since it is redefined by the
299 memo format.
300 %
301 \itm{\CS{Text}}
302 Begins the text of the memo. You can also say \cs{body}.
303 %
304 \itm{\CS{annotations}\qquad}
305 Optional annotations follow, in \cs{obeylines} format.
306 %
307 \itm{\CS{cc}}
308 Carbon copy. A "cc:" and the names following it are printed,
309 properly aligned in \cs{obeylines} format.
310 %
311 \itm{\CS{Distribution}\qquad}
312 This is like \CS{cc} but prints "Distribution:" instead.
313 %
314 \itm{\CS{Encl}}
315 This is like \CS{cc} but prints "Encl:" instead, as for letters.
316 %
317 \itm{\CS{ps}}
318 Optional postscript follows. This is not in \cs{obeylines} format.
319 %
320 \itm{\CS{endmemo}}
321 Ends the memo. You can say \cs{bye} instead.
322 \enddescription
323
324 All of these commands with mixed case names have synonyms which are
325 the same name but in all lower case letters. The use of the \cs{memo}
326 format is illustrated by the following example:
327 \TeXexample
328 |smalltt\memo
329 \To \TeXsis\ Users
330 \From E. Myers and F.E. Paige
331 \Date
332 \Subj \TeXsis\ 2.18
333 \text
334 \TeXsis\ 2.18 is now available. The new version adds
335 several features and corrects various bugs.
336 \Distribution
337 A. Blake
338 I. Harrity
339 B. Nichols
340 \endmemo
341 |endTeXexample
342
343 If the memo is longer than one page a headline containing the subject
344 and page number is put across the top of all pages after the first. If
345 the subject is longer than one line only the first line of the subject
346 is used in this headline. You can easily change what is used as this
347 subject line by changing the definition of the macro \CS{subjectline}
348 anywhere in the body of the memo. For example, although the subject of
349 your memo might be simply ``Annual Report,'' you might make the headline
350 more specific by defining:
351 \TeXexample
352 \def\subjectline{Annual Activity Report for Buckaroo Banzai}
353 |endTeXexample
354 \nobreak\noindent
355 Then this longer title will appear with the page number on all pages
356 after
357 the first.
358
359
360 %======================================================================*
361 \subsection{Referee Reports}
362
363 The \CS{referee} format creates a document very much like a
364 \cs{memo}, although there are some important differences.
365 \index{referee reports}
366 Referee reports are supposed to be confidential, so instead of
367 printing the name of your organization at the top of the first
368 page it puts the words ``Referee Report.'' In the
369 \CS{referee} format you can use the same commands that are used in
370 the \cs{memo} format, such as |\To| and |\Date|, but if you use
371 \cs{From} a warning message will be printed on your screen. (This
372 is only a warning, it still does what it has been asked to do!)
373
374 \bottomfigure{Referee}
375 \begingroup
376 \def\resetcounters{\relax} % don't globally change the section number
377 \line{\hfil
378 \tightboxit{\hbox{\vbox to 11cm{\leftskip=1cm
379 \referee\ninepoint\hsize=8.5cm\rightskip=1cm
380 \centerline{{\twelvepoint\bf Referee Report}}
381 \bigskip
382 \memoitem{DATE:} 1 April 2001
383 \memoitem{TITLE:} \TeXsis\ -- \TeX\ Macros for Physicists
384 \memoitem{AUTHORS:} E.~Myers and F.E.~Paige
385 \memoitem{MANUSCRIPT:} LP-3105
386 \text
387 This is pretty good, but it's too long
388 for Physical Review Letters.
389 \vfill}}}
390 \hfil}
391 \endgroup
392 \caption{Sample Referee Report}
393 \endfigure
394
395
396 There are also some additional commands for the referee
397 report format:
398 \description{~authors\qquad}\clump
399 %
400 \itm{\cs{title}}
401 The title of the paper being reviewed should follow this on the
402 same line. This is similar to |\Subj| in the memo format.
403 %
404 \itm{\cs{author}}
405 Prints ``{\twelvess AUTHOR:}'' and the name that follows on the
406 same line.
407 %
408 \itm{\cs{authors}}
409 Same as \cs{author} for a paper with more than one author.
410 %
411 \itm{\CS{MSref}}
412 Prints ``{\twelvess MANUSCRIPT:}'' and the manuscript reference number
413 which follows.
414 \enddescription
415
416 The text of the report should begin with \cs{text} or
417 \cs{body}, just as for a memo, and the whole document should end
418 with |\endmemo| or \cs{bye}. An example of the referee report
419 format is given by the following:
420 \TeXexample
421 \referee
422 \date 1 April 1999
423 \title \TeXsis\ -- \TeX\ Macros for Physicists
424 \authors E.~Myers and F.E.~Paige
425 \MSref LP-3105
426 \text
427 This is pretty good, but it's too long
428 for Physical Review Letters.
429 \bye
430 |endTeXexample
431 This produces a report which looks something like \Fig{Referee}
432
433
434
435 %======================================================================*
436 \subsection{Form Letters \label{sect.form}}
437
438 The \CS{formLetters} layout makes it simple to send
439 identical or similar letters to a list of people.
440 \index{form letters}\index{letters|see{form letters}}
441 \index{mail merge|see{form letters}}
442 The body of the form letter is stored in one file using the standard
443 \TeXsis\ letter format, while the control commands and a list of
444 addresses are put in a second file. The body of the letter should begin
445 with \cs{body} and end with \cs{endletter}, and it can contain an
446 arbitrary number of control sequences defined for each recipient. It
447 can make use of all the features of the letter format. For example,
448 the letter body might contain the following
449
450 \TeXexample
451 |smalltt\body
452 Dear \Whoever:
453
454 \if P\Job
455 I wish to apply for a postdoctoral position
456 \else\if F\Job
457 I wish to apply for a faculty position
458 \else
459 I wish to apply for a postdoctoral or faculty position
460 \fi\fi
461 at your institution. Enclosed you will find my curriculum vitae,
462 a list of publications, and ...
463
464 \closing
465 Sincerely yours,
466 Joe Postdoc
467 \Encl
468 Publication list
469 Curriculum vita
470 \endletter % don't say \bye here!
471 |endTeXexample
472 This example addresses the letter to |\Whoever|, and it uses the
473 first text if |\Job| is |P|, the second if |\Job| is |F|, and the
474 third otherwise. Thus form letters are very flexible.
475
476 The mailing list file initializes the form letter macros and
477 contains the list of addresses. \TeXsis\ should be run on this file, not
478 on the file containing the body of the letter! For the example above it
479 would have the form:
480 \TeXexample|smalltt
481 \texsis
482 \formLetters{\letterhead{7734}}{letterbody.tex}
483
484 \BL Prof.\ John Doe
485 Department of Physics
486 University of Nowhere
487 Nowhere, OK 73019 USA
488 \V\Whoever{Professor Doe}
489 \V\Job{F}\EL
490
491 \BL Dr.\ Buckaroo Banzai
492 Physics Department
493 The Banzai Institute
494 Grovers Mill, NJ 08544
495 \V\Whoever{Dr.\ Banzai}
496 \V\Job{P}\EL
497 ...
498 \endform
499 \bye
500 |endTeXexample
501 \noindent
502
503 The first argument of \cs{formLetters} is something like the usual
504 \cs{letterhead} macro, with your phone number. Depending on your
505 letterhead this might have multiple parameters or might even be several
506 control sequences (all enclosed in a set of curly braces, of course).
507 The second argument to \cs{formLetters} is the name of the file
508 containing the body of the letter. The idea is that the stuff in the
509 first argument gets put into the letter {\it before} the address, while
510 the body of the letter (read from the file) is what goes after the
511 address. Each letter begins with \CS{BL} ("Begin Letter") and has the
512 name of the addressee on the same line and the address on the following
513 lines. Any ``variables'' used in the letter can be defined using
514 \cs{V}, which is just an abbreviation for \cs{gdef}. Because \cs{V} is
515 simply \cs{gdef}, if you omit \cs{V} from an address entry, the value
516 defined in a previous entry will be used. If necessary, variables can
517 also be defined before the \CS{BL}. Each address in the mailing list is
518 ended by \CS{EL} ("End Letter"). When the \CS{EL} is executed it reads
519 in the file containing the text for the letter and actually produces the
520 letter.
521
522 Any address in the list can be ignored simply by replacing the
523 \CS{BL} with \CS{IL} ("Ignore Letter"). In particular, this can be done
524 by a simple global edit after each batch of letters is made, and the
525 same file can then be used to send a second mailing by changing \CS{IL}
526 back to \CS{BL} for a select subset of addresses.
527
528 In earlier versions of \TeXsis\ the
529 \cs{formLetters} command was called \cs{formletters}.
530 The first is now prefered, though the second will also be accepted.
531 Also, as of \TeXsis\ version 2.17 the form letter macros have actually
532 been moved to the style file {\tt Formletr.txs}.
533 This style file is \cs{autoload}'ed, so as long as you have that file
534 on your system you should not notice a difference.
535
536
537 \bigskip
538 \nosechead{Mailing Labels}
539
540 The same address file can be used to produce mailing labels
541 instead of letters simply by replacing |\formLetters{...}{...}| with
542 \CS{formLabels}. It is assumed that there are three columns of names and
543 addresses to fit on standard photocopy machine mailing labels. With the
544 default parameters nine labels each 1~in.\ high are printed per column
545 with the top and bottom rows left blank. This can be changed, and the
546 alignment of the labels can be adjusted, by setting appropriate values
547 for the following dimensions:
548 \TeXexample
549 |smalltt
550 \fullHsize=8.500in % hsize for label page
551 \fullVsize=9.999in % vsize for label page
552 \lblHsize=2.833in % width of standard label
553 \lblVsize=1.000in % height of standard label
554 \lblVoffset=0.100in % vertical starting position
555 \lblHoffset=-0.500in % horizontal starting position
556 |endTeXexample
557 Choosing appropriate values may require some experimentation with your
558 printer and labels. When the correct values are found, they can be
559 set in the file |TXSsite.tex| before compiling the format (see Appendix~A).
560
561 Please note that earlier versions of \TeXsis\ used
562 \cs{formlabels} rather than \CS{formLabels}, but the latter is now
563 prefered.
564
565 \bigskip
566 \nosechead{Printing Envelopes}
567
568 Instead of printing mailing labels and then peeling these off to
569 put them on envelopes, it is possible to print addresses from your
570 mailing list directly onto envelopes, if your printer is capable of
571 feeding envelopes. To do this, simply use \CS{formEnvelopes} in place
572 of \CS{formLabels}. Then each address is simply fed into a
573 \cs{MakeEnvelope} command.
574 To set the return name and address you can define \cs{theSigature}
575 and \CS{ReturnAddress}, as in this example:
576 \TeXexample
577 \texsis
578 \def\theSignature{Joe Rockhead}
579 \def\ReturnAddress{Department of Physics\n
580 University of Delphi\n
581 Oracle, UT 65432}
582 \formEnvelopes
583 |endTeXexample
584 You will probably have to print the output in ``landscape'' mode,
585 and you may want to adjust the size or placement of the envelopes,
586 as described in Section~\use{sect.env}.
587
588 %>>> EOF TXSletr.doc <<<