[XeTeX] XeTeX/MiKTeX bug: \graphicspath does not work as intended

Ulrike Fischer news3 at nililand.de
Fri Dec 25 14:24:17 CET 2009

Am Thu, 24 Dec 2009 20:37:39 +0600 schrieb Igor Kotelnikov:

> Hello,
> I looked through several old posts reporting same issues butb did not
> understand whether they were fixed or not. I am using the most recent MiKTeX
> and I found that
> 1. \graphicspath does not work with xetex as it does with latex and
> pdflatex.
> 2. empty extension of a graphics file is not allowed in \includegraphics.
> I mean that
>     \graphicspath{{graphs/}}
>     \includegraphics{figure}
> does not work but
>      \includegraphics{graphs/figure.pdf}
> inserts figure.pdf located if graphs subdirectory.
> Both these features (\graphicspath and empty extension ) of the graphics(x)
> packages are documented in a number of latex manuals and I belived that
> xelatex must follow the standards of the latex markup. I wonder if these
> deviations from the latex standard is a feature of XeLaTeX itself or is it a
> MiKTeX bug?

I can't reproduce the problem. 

The following works fine for me and use testimg.pdf in the subfolder



I tested with xetex 3.1415926-2.2-0.999.7 from miktex 2.7 and 
xetex 3.1415926-2.2-0.9995.1 from miktex 2.8. 

The file list was identical in both cases:

 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    2007/01/18 v1.5 graphics configuration of
   xetex.def    2009/11/22 v0.94 LaTeX color/graphics driver for

Ulrike Fischer 

More information about the XeTeX mailing list