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

Per Ting perting at gmail.com
Wed Nov 9 08:03:46 EST 2011


Hi,

Is explicit inclusion of convert rules for tif(f) and png files 
necessary? Wouldn't new pdflatex take care of them automatically? Also 
would the the new pdflatex (which makes using auto-pst-pdf unnecessary) 
take care of pstricks and psfrag commands?

Thanks,

Per

On 11/9/2011 6:05 AM, Herbert Schulz wrote:
> 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
> Howdy,
>
> 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
>
> \epstopdfsetup{verbose,update,prepend,prefersuffix=false,suffix=}
>
> 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}
> \PrependGraphicsExtensions{.tif}
> % tiff->png
> \epstopdfDeclareGraphicsRule{.tiff}{png}{.png}{convert #1 \OutputFile}
> \PrependGraphicsExtensions{.tiff}
>
> 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}
> \PrependGraphicsExtensions{.tif}
> % tiff->png
> \epstopdfDeclareGraphicsRule{.tiff}{png}{.png}{sips -s format png #1 --out \OutputFile}
> \PrependGraphicsExtensions{.tiff}
>
> which is the syntax used with the latest versions of epstopdf.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
>



More information about the MacOSX-TeX mailing list