[OS X TeX] Is there a better alternative to \DeclareGraphicsExtensions ?

Daniel Becker daniel.becker at uni-rostock.de
Wed Mar 25 05:13:21 EDT 2009


Hallo -

> \documentclass{article}
> \usepackage{graphicx}
> \usepackage{epspdfconversion} % or \usepackage{epstopdf}
> \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/ 
> `basename #1 .tif`.png}
> \AppendGraphicsExtensions{.tif}
> % See .log file for a list of known graphics
> % extensions
> \begin{document}
> \includegraphics{Hello} % Do not use a suffix. That way Hello.tif  
> will be converted to Hello.png
> \end{document}
>
> The \AppendGraphicsExtensions command appends to the list of known  
> graphic extensions (to prepend use \PrependGraphicsExtensions).

thats a good idea! \AppendGraphicsExtensions and  
\PrependGraphicsExtensions are described here:
http://www.tug.org/texlive/Contents/live/texmf-dist/doc/latex/oberdiek/grfext.pdf

Daniel

>
>
> That way TIFFs get converted only once to PNGs (the other solution  
> presented in the list, using tif2png.sty, is better in the sense  
> that it detects when the TIFFs are updated and reconverts them).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4647 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20090325/8415c32c/attachment.p7s>


More information about the MacOSX-TeX mailing list