LaTeX Wiki
Advertisement

The letter class is used to format letters that can be printed and send over mail.

Syntax[]

\documentclass{letter}
\address{sender address}
\signature{sender name}
\location{Mailbox 13}    % optional
\telephone{phone number} % optional

\begin{document}
  \begin{letter}{recipient address}
    \opening{salutation}
      letter body
    \closing{closing text}
  \end{letter}
\end{document}

Each letter is in a separate letter environment, whose argument often contains multiple lines separated with a double backslash, (\\). The start of the letter environment resets the page number to 1, and the footnote number to 1 also.

The sender address and sender name are common to all of the letters, whether there is one or more, so these are best put in the preamble. As with the recipient address, often sender address contains multiple lines separated by a double backslash (\\). LaTeX will put the sender name under the closing, after a vertical space for the traditional hand-written signature.

Each letter environment body begins with a required \opening command such as \opening{Dear Madam or Sir:}. The letter body text is ordinary LaTeX so it can contain everything from enumerated lists to displayed math, except that commands such as \chapter that make no sense in a letter are turned off. Each letter environment body typically ends with a \closing command such as \closing{Yours,}.

Additional material may come after the \closing. You can say who is receiving a copy of the letter with a command like \cc{the Boss \\ the Boss's Boss}. There's a similar \encl command for a list of enclosures. And, you can add a postscript with \ps.

By default, LaTeX indents the sender name and the closing above it by a length of \longindentation (0.5\textwidth). To make them flush left, put \setlength{\longindentation}{0em} in your preamble.

To set a fixed date use something like \renewcommand{\today}{1958-Oct-12}.

Reference[]

This article includes content from the unofficial LaTeX2e reference manual, which is licensed under the old-style GNU documentation license.

Advertisement