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.

460 Appendix D. L AT E X Programming<br />

\partname {Part}<br />

\appendixname {Appendix}<br />

(defined in book <strong>and</strong> report classes)<br />

\chaptername {Chapter}<br />

\bibname {Bibliography}<br />

(defined in article class)<br />

\abstractname {Abstract}<br />

\refname {References}<br />

(defined in letter class)<br />

\ccname {cc}<br />

\enclname {encl}<br />

\pagename {Page}<br />

\head<strong>to</strong>name {To}<br />

(defined in makeidx package)<br />

\seename {see}<br />

\alsoname {see also}<br />

(defined only in certain packages)<br />

\prefacename {Preface}<br />

\glossaryname {Glossary}<br />

\proofname {Proof}<br />

The redefinition of these name comm<strong>and</strong>s is a fundamental part of<br />

the multilingual babel system (Chapter 11). The comm<strong>and</strong>s are not redefined<br />

directly but rather by means of certain \captionslanguage such<br />

as \captionsgerman <strong>and</strong> \captionsenglish that allow for convenient<br />

switching back <strong>and</strong> forth between different languages. For example,<br />

D.4.2 The date<br />

\newcomm<strong>and</strong>*{\captionsgerman}{%<br />

\renewcomm<strong>and</strong>*{\contentsname}{Inhaltsverzeichnis}<br />

...<br />

\renewcomm<strong>and</strong>*{alsoname}{siehe auch}}<br />

The \<strong>to</strong>day comm<strong>and</strong> for the current date is another one that outputs<br />

explicit English words. Its st<strong>and</strong>ard definition conforms <strong>to</strong> the American<br />

style of giving dates, that is ‘January 15, 2004’. If one wants <strong>to</strong> redefine<br />

this, either for the British style (15th January 2004), or for another language<br />

al<strong>to</strong>gether, the best method is <strong>to</strong> follow the example of the other<br />

names comm<strong>and</strong>s: do not redefine \<strong>to</strong>day directly, but create comm<strong>and</strong>s<br />

that allow one <strong>to</strong> switch back <strong>and</strong> forth.<br />

For example, we can define \dateUSenglish <strong>and</strong> \dateenglish making<br />

use of the internal T E X counters \year, \month, \day <strong>and</strong> the T E X

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

Saved successfully!

Ooh no, something went wrong!