Using the graphicx package with pdfLaTeX and LaTeXThe Problem
The graphicx package which is the package for inserting images seems to have no real understanding of the images at all. What it does when LaTeX runs is basically insert a small piece of wrapper information into the DVI, something like: <Here Beginneth a Piece of Encapsulated Postscript> .... It inserts the eps file verbatim here ..... <Here Endeth the Postscript> So, what happens is
The SolutionAs you need to insert EPS images in Postscript, you need to insert PDF images into PDFs. This is actually pretty straightforward. There is in UNIX a command called eps2pdf. This will do the conversion. The tool also exists in Windows though under the slightly different name epstopdf. You _can_ do this with photoshop but it's far more tedious and the quality is no better.
This should leave you with both pdf & eps images (which is what you want). Now in LaTeX, you may have noticed that the file extension is often optional, ie you can put 'myimage.eps' or just 'myimage' and TeX will figure it out. If you give 'myimage' to Graphicx/pdfLaTeX it'll use 'myimage.pdf'. So, all you have to do in your LaTeX is omit the extension in order that TeX gets to decide which image it should use. If you run LaTeX it'll use the .eps and if you run PDFLaTeX it'll use the .pdf. Worth noting is that the EPS images produced by some graphics programs (eg
Photoshop) is less than perfect. In running
ps2ps uses gs(1) to convert PostScript(tm) file "input.ps" to simpler, normalized and (usually) faster PostScript in "output.ps" References
|