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.

154 Chapter 6. Graphics Inclusion <strong>and</strong> Color<br />

because of their indispensability in producing professional documents<br />

<strong>and</strong> camera-ready copy. Provided by Sebastian Rahtz <strong>and</strong> David Carlisle<br />

<strong>and</strong> many other contribu<strong>to</strong>rs, they can be expected <strong>to</strong> be part of every L AT E X<br />

installation. A basic manual is provided in a file named grfguide.tex,<br />

which may already be preprocessed <strong>to</strong>.dvi or some other form. Even more<br />

details on these packages <strong>and</strong> on advanced applications of PostScript <strong>to</strong><br />

L AT E X are <strong>to</strong> be found in the book The L AT E X Graphics Companion (Goossens<br />

et al., 1997).<br />

The comm<strong>and</strong>s defined by these packages are the building blocks<br />

for other packages that either emulate the older driver-specific ones or<br />

provide a more comfortable syntax for these functions. As long as these<br />

other packages are based on graphics <strong>and</strong> color, they should be equally<br />

compatible with all the supported drivers.<br />

These features are not limited <strong>to</strong> PostScript drivers. As long as a<br />

driver can support the inclusion <strong>and</strong> manipulation (scaling, rotation) of<br />

graphics, <strong>and</strong>/or the use of color, a.def file can be written <strong>to</strong> enable it <strong>to</strong><br />

make use of the st<strong>and</strong>ardized graphics <strong>and</strong> color comm<strong>and</strong>s.<br />

Driver names that may be used as options are<br />

dvipdf<br />

dvipdfm<br />

dvips<br />

dvipsone<br />

dviwin ◭⊲⇑<br />

emtex ◭⊲⇑<br />

oztex<br />

pctex32<br />

pctexhp ◭⊲⇑<br />

pctexps<br />

pctexwin ◭⊲⇑<br />

pdftex<br />

tcidvi ⇑<br />

textures<br />

truetex ⇑<br />

vtex<br />

(Limited functionality: ◭⊲ no color support; no scaling; ⇑ no rotation.)<br />

The xdvi previewer (<strong>and</strong> its Windows equivalent windvi) work with<br />

PostScript graphics; although there is also an xdvi option, it is only an<br />

alias for dvips.<br />

A driver option must be specified when loading the graphics <strong>and</strong><br />

color packages, for example, as<br />

\usepackage[dvips]{graphics,color}<br />

However, it is possible <strong>to</strong> establish a default for the local configuration,<br />

as described in Section 6.1.7. It is conceivable that your installation has<br />

already done this, so it is worth doing an experiment <strong>to</strong> see if a default<br />

driver option already exists.<br />

6.1.1 Importing external graphics<br />

We wish <strong>to</strong> have a graphics file produced by some other program included<br />

in the document, possibly scaled <strong>to</strong> a desired size or rotated by 90 ◦ . One<br />

wants <strong>to</strong> do by computer what used <strong>to</strong> be done with scissors <strong>and</strong> glue.<br />

There are two packages available for importing <strong>and</strong> manipulating external<br />

graphics files: the basic graphics package <strong>and</strong> the more extended<br />

graphicx one. They both offer identical functionality, differing only in<br />

their syntax.

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

Saved successfully!

Ooh no, something went wrong!