[XeTeX] No includegraphics?

Ulrike Fischer news2 at nililand.de
Sun Nov 23 17:00:43 CET 2008

Am Sun, 23 Nov 2008 16:18:59 +0100 schrieb Hans van Maanen:

> However, if I use almost the same document:
> \documentclass[article]{memoir}
> \usepackage{graphicx}
> \usepackage{fontspec, xunicode, xltxtra}
> \setmainfont[Mapping=tex-text]{Times}
> \begin{document}
> Figures are placed as floats.
> \begin{figure}[hbtp]
>   \centering
>   \includegraphics[width=0.9\textwidth]{kamikaze2.jpg}
>   \caption{Kamikaze!}
>   \label{fig:pdf}
> \end{figure}
> See the document.
> \end{document}
> ... and compile it in XeLatex, I get no output, and the following  
> console:

>> (/Users/hans/Library/texmf/tex/latex/texlive/graphics.cfg)
>> (/Users/hans/Library/texmf/tex/latex/graphics/dvips.def)))

Graphics is using the wrong driver. For xelatex you should use xetex.def
or at least dvipdfm(x).def. This suggests that your system is quite old,
in newer systems the graphics.cfg recognize xetex:

File: graphics.cfg 2007/01/18 v1.5 graphics configuration of
Package graphics Info: Driver file: xetex.def on input line 90.

File: xetex.def 2006/08/10 v0.92 LaTeX color/graphics driver for XeTeX
(RRM, mod. JK)

Ulrike Fischer 

More information about the XeTeX mailing list