[OS X TeX] how include .eps in TeXShop using default

Herbert Schulz herbs at wideopenwest.com
Wed Nov 9 12:05:45 CET 2011

On Nov 9, 2011, at 12:22 AM, Christian Pleul wrote:

> If epstodf is called by graphicx package, which options a used for the epstopdf? Does the default look for a updated eps to recompile it to an updated pdf?
> Best
> --
> 	Christian


The default settings (i.e., no extra options) are used when the graphicx package loads the epstopdf package. You may be able to send options to the epstopdf package by adding them to the graphicx package load but I don't do things that way. I use the \epstopdfsetup command (do texdoc epstopdf) to change options. And yes, if file-eps-converted-to.pdf already exists the package checks to see if file.eps is ``newer'' than that file file and will re-convert if necessary.

If there are commands you wish to use all the time you can create an epstopdf.cfg file with those commands and place it in my personal texmf tree at ~/Library/texmf/tex/latex/config/ (that last foldeer is optional but I use it to keep things organized). 

I liked the older behavior where the conversions were file.eps->file.pdf (there are good reasons why they convert to a different base file name but I was used to the original so never run into problems) and the eps extension was pre-pended to the extension list. I use the line


in that epstopdf.cfg file to get that behavior back. The `verbose,update' is part of the defaults but I like to be explicit about that. 

I also add the tif(f)->png conversions (using the convert program that comes with MacTeX) to that file:

% tif->png
\epstopdfDeclareGraphicsRule{.tif}{png}{.png}{convert #1 \OutputFile}
% tiff->png
\epstopdfDeclareGraphicsRule{.tiff}{png}{.png}{convert #1 \OutputFile}

or, using sips (provided by Apple in Lion but I'm not sure how far back that goes) to do the conversion:

% tif->png
\epstopdfDeclareGraphicsRule{.tif}{png}{.png}{sips -s format png #1 --out \OutputFile}
% tiff->png
\epstopdfDeclareGraphicsRule{.tiff}{png}{.png}{sips -s format png #1 --out \OutputFile}

which is the syntax used with the latest versions of epstopdf.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

More information about the macostex-archives mailing list