[Tex/LaTex] How to include eps files using XeLaTeX

epsgraphicsxetex

According to everything I can find on Google, eps files in xelatex should work out-of-the-box. But that's not what I'm seeing (using TeX Live 2010 on Arch Linux). Consider the following simple input:

\documentclass{article}    
\usepackage{graphicx}

\begin{document}
Some text.

\includegraphics{flower.eps}

Some more text.
\end{document}

I put this into a .tex file and place it in the same directory as an EPS file called "flower.eps". Now, if I run xelatex, it outputs a pdf file, but the eps file doesn't appear (although space is reserved for it). On the other hand, latex+dvips works just fine.

Edit: I should mention that pdflatex works if I add \includepackage{epstopdf}. But that doesn't help for xelatex.

There's a related question[1], but it doesn't apply in this case because the solution was to apply the patch here[2], but it's already there in my TeX installation. Does anyone have other ideas?

[1] can't \includegraphics eps files anymore with xelatex (used to work fine)

[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485071

Best Answer

I was having the same problem where my output PDF would have a space reserved for the graphic, but nothing more. In my case it was caused by not having Ghostscript installed, which is necessary since xelatex supports EPS by converting it to PDF in the background via Ghostscript.

Related Question