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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.2. Portable Document Format 237<br />

Where Adobe makes its money is in the sales of programs <strong>to</strong> produce<br />

<strong>and</strong> manipulate PDF files. Of these, the main ones are:<br />

• Acrobat Distiller <strong>to</strong> convert PostScript in<strong>to</strong> PDF, <strong>and</strong><br />

• Acrobat program <strong>to</strong> modify existing PDF files.<br />

In the latter case, ‘modification’ means adding links, changing colors,<br />

including navigational aids, <strong>and</strong> inserting notes; it does not mean altering<br />

the actual textual content in any way.<br />

Today most graphical <strong>and</strong> text processing programs are capable of<br />

generating PDF output. For the L AT E X user, there are three routes that<br />

may be taken <strong>to</strong> produce PDF output. The obvious one is.tex →.dvi →<br />

.ps → .pdf using dvips <strong>to</strong> generate the PostScript <strong>and</strong> then Distiller or<br />

Ghostscript <strong>to</strong> create the PDF file.<br />

The other two methods are <strong>to</strong> employ a DVI-<strong>to</strong>-PDF driver, or the pdfT E X<br />

program <strong>to</strong> go directly <strong>to</strong> PDF, by-passing the intermediate DVI output.<br />

We describe each of these in the next sections.<br />

Used on their own, all of these methods produce a simple PDF file<br />

containing nothing more than the text itself, a sort of electronic paper.<br />

The hypertext features that make an electronic document really live can<br />

be added au<strong>to</strong>matically with the help of the hyperref package described<br />

in Section 10.2.4.<br />

10.2.2 The dvipdfm driver<br />

The driver program dvipdfm by Mark A. Wicks is the equivalent of dvips<br />

for PDF output. As its name implies, it converts DVI <strong>to</strong> PDF output. (The<br />

m suffix is <strong>to</strong> distinguish it from a previously announced dvipdf program<br />

that never came <strong>to</strong> fruition.)<br />

Graphics input can be included with the graphics or graphicx packages<br />

(Section 6.1) by specifying the option dvipdfm. The allowed graphics<br />

formats are JPEG, PNG, <strong>and</strong> PDF.<br />

The program is called from a comm<strong>and</strong> line with<br />

dvipdfm myfile<br />

<strong>to</strong> convert myfile.dvi <strong>to</strong> myfile.pdf. As for dvips, there are many<br />

options that may be included. It is best <strong>to</strong> read the provided manual in<br />

dvipdfm.pdf or dvipdfm.dvi, or produce it by processing dvipdfm.tex<br />

with T E X.<br />

The configuration is set up by means of a file named config in the<br />

dvipdfm direc<strong>to</strong>ry. This is set up similarly <strong>to</strong> the config.ps file for<br />

dvips, including the list of mapping files, although these have a different<br />

syntax <strong>to</strong> those of dvips.<br />

Hypertext features <strong>and</strong> other PDF additions can be added with the<br />

hyperref package (Section 10.2.4).

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

Saved successfully!

Ooh no, something went wrong!