12.04.2015 Views

Using Imported Graphics in LaTeX and pdfLaTeX - Mirror

Using Imported Graphics in LaTeX and pdfLaTeX - Mirror

Using Imported Graphics in LaTeX and pdfLaTeX - Mirror

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.

xv<br />

xv is an <strong>in</strong>teractive image manipulation program for the X W<strong>in</strong>dow System.<br />

While it has graphics-conversion capability, xv was designed for image manipulation<br />

program <strong>and</strong> thus is not tailored for graphics conversion (for example,<br />

it does not provide comm<strong>and</strong>-l<strong>in</strong>e capabilities so graphics must be one-by-one.<br />

xv is $25 shareware for non-commercial use, with the $25 registration m<strong>and</strong>atory<br />

for commercial use. More <strong>in</strong>formation is available from<br />

GIMP<br />

http://www.trilon.com/xv/xv.html<br />

gimp (gnu Image Manipulation Program) is a freely available image manipulation<br />

program which duplicates much of the functionality of PhotoShop.<br />

gimp is available for Unix/L<strong>in</strong>ux, W<strong>in</strong>dows, <strong>and</strong> MacOS X. More <strong>in</strong>formation<br />

is available at<br />

6.3 Level 2 EPS Wrappers<br />

http://www.gimp.org/<br />

Level 2 PostScript supports several compression schemes, <strong>in</strong>clud<strong>in</strong>g DCT (used <strong>in</strong><br />

jpeg files) <strong>and</strong> lzw (used <strong>in</strong> many tiff files). Additionally, this b<strong>in</strong>ary data can<br />

be ascii-encoded as ascii85 or asciiHex (which produces ascii files which are<br />

125% <strong>and</strong> 200%, respectively, of the orig<strong>in</strong>al b<strong>in</strong>ary size). The fact that Level-2 eps<br />

supports these compression schemes allows a Level-2 eps file to be constructed as a<br />

wrapper around a jpeg file or tiff file. This produces better quality <strong>and</strong> smaller<br />

files than convert<strong>in</strong>g the graphics to conventional eps. If one has a Level 2 PostScript<br />

pr<strong>in</strong>ter, it is better to use the follow<strong>in</strong>g wrapper programs <strong>in</strong>stead of the conversion<br />

programs listed above. S<strong>in</strong>ce the result<strong>in</strong>g PostScript files can only be pr<strong>in</strong>ted on<br />

Level 2 pr<strong>in</strong>ters, the documents are less portable.<br />

Note that, by default, dvips strips the comment l<strong>in</strong>es (those l<strong>in</strong>es which beg<strong>in</strong><br />

with %%) from any <strong>in</strong>cluded eps graphics. S<strong>in</strong>ce ascii85-encoded level-2 graphics can<br />

have l<strong>in</strong>es beg<strong>in</strong>n<strong>in</strong>g with %%, users <strong>in</strong>clud<strong>in</strong>g ascii85-encoded level-2 eps files must<br />

use the dvips -K0 (K followed by a zero) option to prevent dvips from stripp<strong>in</strong>g<br />

comment l<strong>in</strong>es. Note asciiHex level-2 encod<strong>in</strong>g does not have this problem.<br />

jpeg2ps<br />

A jpeg graphic can be converted to level 2 PostScript by the C program<br />

jpeg2ps, which can be compiled Unix, dos, <strong>and</strong> other systems. jpeg2ps is<br />

available from<br />

CTAN/nonfree/support/jpeg2ps/<br />

http://www.pdflib.com/products/more/jpeg2ps.html<br />

http://gnuw<strong>in</strong>32.sourceforge.net/packages/jpeg2ps.htm<br />

where CTAN/ should be replaced by any of the ctan sites listed on page 3.<br />

jpeg2ps supports three types of level-2 encod<strong>in</strong>g: ascii85 (default), 8-bit<br />

b<strong>in</strong>ary (us<strong>in</strong>g jpeg2ps -b), or 7-bit asciiHex (us<strong>in</strong>g jpeg2ps -h).<br />

20

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

Saved successfully!

Ooh no, something went wrong!