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.

396 Appendix B. The L AT E X Clockwork<br />

varioref (Section 9.2.4) defines \vref <strong>and</strong> \vpageref comm<strong>and</strong>s, analogous<br />

<strong>to</strong> \ref <strong>and</strong> \pageref, which check if the referenced object is<br />

only one page away, <strong>and</strong> if so, print text like ‘on the previous page’;<br />

the actual text printed can alternate between two variants.<br />

verbatim (Section 4.9.1) is a re-implementation of the verbatim environment<br />

that prevents memory overflow for long texts; it also defines a<br />

comm<strong>and</strong> \verbatiminput <strong>to</strong> input a file <strong>and</strong> <strong>to</strong> print its contents<br />

literally, as well as a comment environment for a block comment in<br />

the input text.<br />

xr (Section 9.2.3) is a package <strong>to</strong> allow \ref <strong>to</strong> cross-reference \label<br />

comm<strong>and</strong>s from other documents.<br />

xspace (Section 8.3.1 on page 186) contains a device <strong>to</strong> fix the problem<br />

of comm<strong>and</strong> names swallowing up the blank that follows them; thus<br />

the comm<strong>and</strong> \PS defined as<br />

\newcomm<strong>and</strong>{\PS}{PostScript\xspace}<br />

may be used as \PS file without having <strong>to</strong> terminate the \PS<br />

comm<strong>and</strong> with \ or {}.<br />

B.6 The various L AT E X files<br />

A number of different files are used during the L AT E X processing: some<br />

are read in while others are created <strong>to</strong> s<strong>to</strong>re information for the next run.<br />

They all consist of two parts:<br />

root name.extension<br />

For every L AT E X document, there is a main file, whose root name is used<br />

when the program L AT E X is called. It normally possesses the extension<br />

.tex, as do any other files that it might read in with \input or \include<br />

comm<strong>and</strong>s. (If they have a different extension, it must be given explicitly.)<br />

The other files that are created during a L AT E X processing run normally<br />

have the same root name as the main file but a variety of different extensions,<br />

depending on their functions. If the main file contains \include<br />

comm<strong>and</strong>s, there will be additional files created having the same root<br />

names as the included.tex files but with the extension.aux.<br />

Some of these files are created with every L AT E X run, whereas others<br />

appear only when certain L AT E X comm<strong>and</strong>s have been issued, such<br />

as \tableofcontents or \makeindex. The .aux files as well as those<br />

produced by special L AT E X comm<strong>and</strong>s may be suppressed by including<br />

the comm<strong>and</strong> \nofiles in the preamble. This comm<strong>and</strong> is useful if a<br />

document is being constantly corrected <strong>and</strong> reprocessed, so that the information<br />

in the special files is not yet finalized <strong>and</strong> may therefore be

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

Saved successfully!

Ooh no, something went wrong!