[XeTeX] How to include .eps picture in XeTeX?

Jonathan Kew jonathan_kew at sil.org
Wed Apr 23 23:06:58 CEST 2008


On 23 Apr 2008, at 4:58 pm, Joseph LEE wrote:

> Hi all
>
> I have just tried to replace LaTeX with XeLaTeX these days, but how to
> insert .eps pictures in to XeLaTeX document is such a big problem  
> to me.
> I have tried many combianation of drivers (dvipdfm, dvipdfmx) and
> graphic packages(graphics, graphicx), such as folling:
>
> \documentclass{article}
> \usepackage{fontspec}
> \usepackage[dvipdfm]{graphics}
> \begin{document}
> \includegraphics{thiazole.eps}
> \end{document}
>
> But none of them works. The console reply the folling information:
>
> Error 1 (driver return code) generating output;
> file d:/temp/a3paper.pdf may not be valid.
>
> I would like to know in XeLaTeX environment which driver is applicable
> if I want to use .eps picture?


I'd recommend that you convert the .eps pictures to .pdf (e.g., using  
epstopdf). This should preserve their quality, while allowing them to  
be easily used by xelatex (or pdflatex, for that matter).

I think there are LaTeX packages that can perform this conversion on- 
the-fly (using epstopdf or similar behind the scenes), but am not  
familiar with the details.

It's also possible to configure the xdvipdfmx driver to do the  
conversion, by setting up a "distiller" command in dvipdfmx.cfg. I  
think there are comments in the file that describe this.

JK



More information about the XeTeX mailing list