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.

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

share|improve this question
    
Welcome to tex.sx! A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "101010" on it). –  Caramdir Feb 28 '11 at 3:46
add comment

2 Answers

Here are my used files for a working xelatex run (I used only the tiger.eps):

This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010)
   restricted \write18 enabled.

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
   xetex.def    2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)

   tiger.eps    Graphic file (type eps)
 ***********

you can get the list with \listfiles in your preamble

share|improve this answer
    
Thanks, I got exactly the same list of files and versions. Actually, if I try including tiger.eps, then it works! So it seems that xetex is having trouble with my eps file (although every other piece of software I throw at it has no trouble...) –  Joe Neeman Feb 28 '11 at 12:47
1  
Ok, so I can confirm that the problem is with the eps to pdf conversion step: I got my eps file to show up by editing /etc/texmf/dvipdfmx/dvipdfmx.cfg and replacing the line that starts 'D "rungs ...' with 'D "epstopdf -o=%o %i"'. Now the eps shows up, but it is positioned wrongly (ie. differently than if I do latex+dvips). Maybe I can get this all to work by just finding the right conversion tool... –  Joe Neeman Feb 28 '11 at 12:53
add comment
\usepackage[xetex]{graphicx}

Would this make any difference?

share|improve this answer
    
No, that doesn't change anything... –  Joe Neeman Feb 28 '11 at 12:45
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.