Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to include an EPS file into a PDF file using MikTex 2.9 under Windows 8. Everything else LaTex related works like a charm.

pdflatex keeps complaining about a missing xy-eps-converted-to.pdf file. However a xy.pdf exists and is exactly that file that pdflatex should use instead of the xy-eps-converted-to.pdf, so it's just the filename that appears to be wrong.

Either epstopdf is giving the file the wrong name or pdflatex is expecting the wrong one. Whichever way might be right or wrong, how do I kind of synchronize them to use the same filename?

share|improve this question
    
I'll give that a try, however I've chosen to use pdflatex with pngs that I create from the eps files manually. Much more convenient in my book. –  Hendrik Wiese Dec 28 '12 at 11:18
add comment

1 Answer

Are you including it as \includegraphics[..]{xy.eps}? If so, don't. Use \includegraphics[..]{xy} - the driver will take care of file extensions.

Under pdflatex, an EPS is converted to a PDF, but if a PNG exists, then it will be used (a legacy preference order). There are default file extensions accepted by pdflatex, searched in a specific order (see Graphics file extensions and their order of inclusion when not specified), so there's no need to include the extension. Moreover, this allows for one to possibly switch between processing a document in latex and pdflatex, letting the compiler decide on the graphics file to include.

If you're still experiencing problems, there should be a converted version of your .eps in the working folder. Rename this to an appropriate .pdf name (say, xy.pdf) and then include this verbatim

\includegraphics{xy.pdf}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.