[OS X TeX] includegraphics in xelatex and filenames with spaces

Álex Bueno lists+tex+mac at bueno.imap.cc
Sun Feb 3 20:21:58 CET 2008


I posted this to the xetex list last week, but I didn't get any  
responses. So I wonder if anyone here knows why this happens:

> As far as I've read, 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.


More information about the macostex-archives mailing list