[texhax] includegraphics with spaces in the file path?

Peter Davis pfd at pfdstudio.com
Tue Oct 4 16:37:52 CEST 2011


Ok, the following is probably not *minimal*, but it's a very  small example
that demonstrates the problem, at least with This is XeTeX, Version
3.1415926-2.3-0.9997.5 (Web2C 2011)


Any clues about why this fails, or how to make it work, would be GREATLY
appreciated ...


\documentclass[letterpaper]{article}

\usepackage{fontspec}

\usepackage{graphicx}

\usepackage{xcolor}

\usepackage{tabto}

\usepackage{setspace}

\usepackage{grffile}

\usepackage[absolute]{textpos}

\usepackage{settobox}

\usepackage{soul}


\setlength{\TPHorizModule}{1bp}

\setlength{\TPVertModule}{\TPHorizModule}

\setlength{\parindent}{0pt}

\setlength{\unitlength}{1bp}

\pagestyle{empty}

\newlength{\imgHeight}

\newlength{\imgWidth}

\usepackage[paperwidth=252.000000bp,paperheight=144.000000bp]{geometry}

\newfontfamily\MyriadZPro{Myriad Pro}

\newfontfamily\Optima{Optima}


\newsavebox{\XMPG}\sbox{\XMPG}{\includegraphics[scale=0.331209]{C:/Users/peterd/Documents/My
Dropbox/Doc/Campaigns for
testing/AP_BUS/AP_bus_card_US/Documents/1/Resources/AP_logo_wirm_PMS_LLC.eps}}


\begin{document}


\begin{textblock}{128.314080}(17.718768,17.750016)

{\par \begin{picture}(0,0)(0,18.232056)

\put(0.000000,-11.766300){\usebox{\XMPG}}

\end{picture}

\null\par}

\end{textblock}


\end{document}



On Fri, Sep 30, 2011 at 3:43 PM, Peter Davis <pfd at pfdstudio.com> wrote:

>
>
> On Fri, Sep 30, 2011 at 9:39 AM, Heiko Oberdiek <
> heiko.oberdiek at googlemail.com> wrote:
>
>> 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.
>>
>>
> Thanks!  I have not been able to come up with a minimal example that hits
> the problem yet.  I'll try to isolate what's failing.
>
> Regards,
> -pd
>
>
> --
> ----
> The Tech Curmudgeon
> http://www.techcurmudgeon.com
>
>
>


-- 
----
The Tech Curmudgeon
http://www.techcurmudgeon.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20111004/58ab8a2f/attachment-0001.html>


More information about the texhax mailing list