[Tex/LaTex] eps figures with pdflatex


In a recent discussion on this site I learned that using


makes it possible to run pdflatex on files containing eps and pstricks files (and psfrag usage as well). Now a couple of questions:

  1. If a file does not contain pstricks, just eps and psfrag, this method can still be used. But is there a method to do this that does not require loading pstricks? I know that auto-pst-pdf is one approach, another one is to load epstopdf, are there any other ways to achieve this without loading these files? Maybe by adding an option to graphicx?

  2. In all these approaches, every time that pdflatex is run all eps and pstricks files are converted to pdf files, even if they have not changed. Is there an approach that prevents it and only converts to pdf if a file has been changed from last compilation?


Best Answer

TeX Live 2010 and 2011 automatically convert EPS files to PDF, but it looks like it keeps converting, even when the EPS file hasn't changed. Working from Herbert's suggestion, this should do the trick. It may also work with other distributions, but I've not tried.

\epstopdfsetup{update} % only regenerate pdf files when eps file is newer
\includegraphics[width=\textwidth]{sine} % loads sine-eps-converted-to.pdf
Related Question