[XeTeX] includegraphics and filenames with spaces
Álex Bueno
lists+tex+xetex at bueno.imap.cc
Mon Jan 28 23:58:14 CET 2008
Hi,
As far as I've read on this list, it seems xetex should allow spaces
in filenames of included graphics. Yet I can't get this to work
properly. I'd use \XeTeXpicfile instead of \includegraphics, but it
doesn't seem to have a draft option, which is a must with dozens of
images in a file.
I started putting double quotes around the filename, but got an
"Unable to load picture" error that suggested writing ""filename"". I
found that that gave the suggestion to add another set of quotes and
eventually dispensed with the quotes:
\documentclass[12pt,letterpaper,oneside]{report}
\usepackage[final,xetex]{graphicx}
\usepackage{fontspec,xunicode,fixltx2e,xltxtra}
\setromanfont{Minion Pro}
\begin{document}
\begin{figure}[tbp]
\includegraphics[width=3in]{foo bar.tiff}
\end{figure}
\end{document}
This includes the image, but I get this text next to the image:
bar.tiff bar.bb
What might be going on with this?
I'm using the version of xetex in Maclive 2007.
Thanks,
Alex
More information about the XeTeX
mailing list