# [XeTeX] File name bug when using \includegraphics

Akira Kakuto kakuto at fuk.kindai.ac.jp
Fri Oct 8 03:28:28 CEST 2010

Hi,

> I found a bug related to \includegraphics. If the file name includes
> "&", it stops the compiling and does not show any useful information. I
> also found out that there was no problem with "&" in the file name when
> using pdflatex.

On windows, there was no error with xelatex for an
example:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{center}
\includegraphics[width=0.8\textwidth]{m&m.eps}
\end{center}
\end{document}

Best,
Akira