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

Akshay Gulati geekpotter at gmail.com
Wed Mar 25 04:08:54 CET 2009


So what we are doing here is converting tiff image in to png, I am  
wondering which is the best for latex, jpeg, eps, png or tiff.
I mean which should be preferred way of including graphics

Thanks

Akshay
On 24-Mar-09, at 6:59 PM, Ramón Figueroa-Centeno wrote:

>
> Aloha,
>
> Here is an answer to my own question:
>
> \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).
>
> 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).
>
> Ramón
>
>
> -- 
> View this message in context: http://n2.nabble.com/Is-there-a-better-alternative-to-%5CDeclareGraphicsExtensions---tp2483186p2530262.html
> Sent from the MacOSX-TeX mailing list archive at Nabble.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
>

----------- 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