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

Daniel Becker daniel.becker at uni-rostock.de
Wed Mar 25 10:13:21 CET 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://tug.org/pipermail/macostex-archives/attachments/20090325/8415c32c/attachment.bin 
-------------- next part --------------
----------- 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 macostex-archives mailing list