Latex sample ucbletter

From UCB Math Wiki
Revision as of 13:31, 30 December 2011 by Vojta (talk | contribs) (Minor formatting change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Writing a Letter or Memo in LaTeX (ucbletter document class)

Here's a quick example of a LaTeX file using the ucbletter document class.

\documentclass{ucbletter}
\begin{document}
% home address.
% \address{Rusty C. Wright\\4609 Muir Avenue\\San Diego, California 92107}
% \telephone{(619) 225-0918}
% \subject{Donald Duck's Sailor Suit} % used only by the memo option
%
\name{Rusty C. Wright}
\signature{Rusty Wright}
\begin{letter}{recipient's\\address}
\opening{Dear Sir,}
(The body of the letter goes here.  Blank lines start new paragraphs.)
\closing{Thank you,}
\end{letter}
\end{document}

Here's another use of the document class, for producing a memo instead of a letter.

\documentclass[11pt,memo]{ucbletter}
\begin{document}
\from{Rusty C. Wright}
\to{Tom\\Dick\\Harry}
\subject{Donald Duck's Sailor Suit}
% \date{} % if left out, current date will be supplied
\signature{Rusty Wright}
\begin{memo}
Donald's suit is cute.
\end{memo}
\end{document}

See also the documentation for the ucbletter document class.