Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can pdflatex include eps files?

EPS files pdflatex
0
Posted

Can pdflatex include eps files?

0

Not directly, but you can tell pdflatex to convert eps files to pdf files on the fly. Edit your LaTeX file and add these lines before \begin{document}: \ifx\pdfoutput\undefined % we are running LaTeX, not pdflatex \usepackage{graphicx} \else % we are running pdflatex, so convert .eps files to .pdf \usepackage[pdftex]{graphicx} \usepackage{epstopdf} \fi If you have an existing document with commands like \includegraphics{foo.eps} then LaTeX will include foo.eps but pdflatex will automatically convert it to foo.pdf and include that. Note that it is better to leave off the extension; ie. use \includegraphics{foo}. Then pdflatex will include foo.pdf if it exists, but if not it will look for foo.eps and call epstopdf to create foo.pdf.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123