I use .eps graphics in my latex documents converted at compile using the epstopdf package and it works great.
When I build the file, epstopdf creates the <filename>-eps-converted-to.pdf file and includes it in the resulting .pdf.
I would now like to now delete the .eps file and just use the converted<filename>-eps-converted-to.pdf file. This actually works, sort of - epstopdf doesn't complain (rightly or wrongly), it just returns
Package epstopdf Info: Output file is already uptodate.
and the resulting .pdf contains the image as desired.
However, I get an annoying LaTeX warning
LaTeX Warning: File `test.eps' not found on input line 8.
MWE:
\documentclass{article}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{epsfig}
\begin{document}
\includegraphics{test.eps}
\end{document}
Build this with any .eps file and it builds fine. Now delete or rename the .eps file and it still builds fine, but gives the annoying warning above.
My question: is there any way to just disable the warning for missing .eps files?
The reason for this is that I often auto-generate .eps files outside of the latex source directory and would like to just commit the latex source to git with the converted .pdf files (output locally by using the [outdir=./] option with epstopdf) but without the source .eps files - this way I or anyone else can build it stand-alone.
Updated MWE with .eps file outside the source path:
\documentclass{article}
\usepackage{graphicx}
\usepackage[outdir=./]{epstopdf}
\epstopdfsetup{suffix=}
\begin{document}
\includegraphics{../test}
\end{document}
epsfig: the recommended solution is to usegraphicxinstead. And you probably don't needepstopdfalthough the latter will not hurt anything. – cfr Jan 14 '15 at 22:21epsfigand use\includegraphics{test}rather than\includegraphics{test.eps}then all you need to do is check in the generated files as test.pdf and latex will use the eps if it is there and pdflatex will use the pdf it's probably simpler just to convert each of the eps externally rather than getting latex to escape to teh shell to convert them – David Carlisle Jan 14 '15 at 22:40[outdir=./]is used withepstopdf? I have added a new MWE to demonstrate. – zelanix Jan 14 '15 at 23:36