[texhax] includegraphics with spaces in the file path?
Heiko Oberdiek
heiko.oberdiek at googlemail.com
Fri Sep 30 15:39:04 CEST 2011
On Fri, Sep 30, 2011 at 08:29:38AM -0400, William Adams wrote:
> On Sep 29, 2011, at 11:27 PM, Peter Davis wrote:
>
> > \newsavebox{\XMPC}\sbox{\XMPC}{\includegraphics[scale=0.331209]{C:/Users/peterd/Documents/My Dropbox/Doc/X/Y/Campaigns for testing/AP_BUS/AP_bus_card_US/Documents/1/Resources/AP_logo_wirm_PMS_LLP.eps}}
>
> The underscore is a math mode indication of superscript.
>
> Prefacing it w/ \string is a hard-coded fix, but I'd thought grffile fixed
> that as well.
I cannot reproduce the problem:
\listfiles
\documentclass{article}
\usepackage{graphicx}
\usepackage{grffile}
\begin{document}
\includegraphics{s_ _1.png}
\end{document}
Works fine for me with and without option `draft'.
With option `draft' the file name is printed.
But the graphics package detokenizes the string before.
Yours sincerely
Heiko Oberdiek
More information about the texhax
mailing list