28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

356 Chapter 16. Letters<br />

without a corresponding letter may be printed by including an empty<br />

letter environment of the form<br />

\begin{letter}{recipient}\end{letter}<br />

16.2 A house letter style<br />

The sample letter above demonstrates the possibilities of the st<strong>and</strong>ard<br />

L AT E X letter class. The height <strong>and</strong> width of the text may easily be altered<br />

with appropriate declarations in the preamble. The use of explicit English<br />

words <strong>and</strong> date style is no problem for other languages since they are all<br />

contained in special comm<strong>and</strong>s that can be redefined.<br />

The letter class has been designed so that if the \address comm<strong>and</strong><br />

is omitted, a company letterhead will be printed instead. This presupposes<br />

that the file has been reprogrammed at the local installation for<br />

this purpose. Each employee using this house letter style will have certain<br />

personal entries <strong>to</strong> make, such as his or her room <strong>and</strong>/or telephone number.<br />

These comm<strong>and</strong>s have been provided for in the st<strong>and</strong>ard letter<br />

class.<br />

We have such a house letter style at our institute which we will illustrate<br />

here. However, it was found necessary <strong>to</strong> add some more personal entries,<br />

such as ‘Our Ref.’, ‘Your Ref.’, <strong>and</strong> email addresses. In addition, a comm<strong>and</strong><br />

<strong>to</strong> print out ‘Subject:’ has also been added.<br />

To distinguish our local house style from that of st<strong>and</strong>ard L AT E X, we have<br />

named it mpletter. It contains most of the features of letter, since it in<br />

fact reads in that class file <strong>and</strong> then makes its alterations <strong>and</strong> additions.<br />

The \address comm<strong>and</strong> is not necessary, since all letters are printed with<br />

the institute letterhead, including its address. The recipient’s name <strong>and</strong><br />

address are taken from the argument of the letter environment <strong>and</strong> are<br />

vertically centered in the space provided in the letterhead.<br />

The writer’s name <strong>and</strong> telephone extension are entered with<br />

\name{author} <strong>and</strong> \telephone{ext number}<br />

which, if given in the preamble, apply <strong>to</strong> all the letters in the file. If<br />

different letters have other authors, these comm<strong>and</strong>s must be made in<br />

the appropriate letter environment before the \opening comm<strong>and</strong>. New<br />

entry comm<strong>and</strong>s specific <strong>to</strong> mpletter are<br />

\yref{your code}<br />

\ymail{your date}<br />

\myref{our code}<br />

\subject{subj text}<br />

which produce the words<br />

Your Ref.:, Your letter of :, Our Ref.:, Subject:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!