Writing Letters in TeX: The ucbletter Document Class

The ucbletter class is a subclass of the standard LaTeX letter class that incorporates the University of California letterhead.

The Letter Environment

The letter environment is used to create a standard business letter.

The following declarations, shown with examples, give information about the sender. See the sample files for placement.

In all of the above, the \sfcode for "." is set to 1000, so one never needs to say "Mr.\ User".

The following modify the letterhead; default values are declared at the end of the file:

\department{DEPARTMENT OF REDUNDANCY DEPARTMENT}
\mailcode{9876}


N.B.: \department erases whatever \mailcode is in effect, so the \mailcode must come after the \department.

In this installation, the letterhead appears as:

  --------------------------------- <logo, etc.> ----------------
\location                             BERKELEY, CALIFORNIA  94720-\mailcode
\email *                              \telephone
\email *
date


&ast; By default, the \email appears on the right; this can be overridden by specifying \emailatleft or \emailatright.

The macro \adjustmargins can be used to make the margins wider--for example, \adjustmargins{.5in}. This affects top and bottom margins as well, but not the placement of the letterhead. This should be done before the macro \begin{document}.

Another option is to set \textwidth and \textheight directly. Again, this should be done before \begin{document}; you should also adjust \oddsidemargin, \evensidemargin, and \indentedwidth if you change \textwidth, and \topmargin, \headsep, and \footskip if you change \textheight. An alternative is to use the center option on the \documentclass line; it will then center the letter automatically.

The signature will appear on the right, aligned with the address, if one is given; otherwise it will appear on the left. This can be overridden with \closingatright or \closingatleft.

The \makelabels declaration causes mailing labels to be made. It must go before the \begin{document} command.

The letter environment creates a new letter, starting from page 1. (The first page is unnumbered.) It has a single argument, giving the addressee and his/her address, as in:

\begin{letter}{Sam Jones\\Institute for Study\\Princeton, N.J.}


Local declarations, such as \address, can follow the \begin{letter}. For informal letters, the address of the recipient can be left out:

\begin{letter}{}


Text is begun with the \opening command, whose argument generates the salutation, as in

\opening{Dear Henry,}


The body of the letter follows, ended by a \closing command, as in

\closing{Yours truly,}


The "signature" is provided automatically.

After the \closing you can put arbitrary stuff, which is typeset with \parindent=0 and no page breaking. Commands designed for use after the closing are:

• \cc{Tinker\\Evers\\Chance} -- which produces:
cc: Tinker
Evers
Chance

• \encl{Foo(2)\\Bar} -- which produces:
encl: Foo(2)
Bar


The Memo Environment

The ucbletter class also implements the UC interdepartmental memo format as a memo environment. The use is much the same as for the letter environment; we will give here only the differences.

The \begin{memo} macro has one argument giving the recipient(s); for example,

\begin{memo}{Sam Jones\\Nicolas Bourbaki}


To declare the subject of the memo, the \begin may be followed immediately by a \subject or \re macro:

\re{Our recent discussion}


The text of the memo follows; the \opening macro, if present, is ignored. After the memo, one can invoke the \closing macro (whose argument, in this case, is ignored; the macro merely serves the purpose of preventing further page breaks). The usual \cc and \encl options may follow this; if they are not used, then there is no point in using the \closing macro, either. The reason for keeping the \opening and \closing macros is so that a letter can be converted to a memo merely by changing the name of the environment. The converse works as well: the \subject or \re macros are ignored in the letter environment.

However, there is an option allowing the end of the memo to be treated as a signed letter. To specify this option, just include signed as one of the options in the \documentstyle line. In that case the \closing macro functions just as it does for a letter.

The format of the top of the memo is:

                                 BERKELEY:  \department
\location
\telephone
\email

date


Sample Documents

Sample documents using the ucbletter class are available.