<br><div class="gmail_quote">On Thu, Dec 9, 2010 at 7:36 AM, Heiko Oberdiek <span dir="ltr"><<a href="mailto:heiko.oberdiek@googlemail.com">heiko.oberdiek@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Thu, Dec 09, 2010 at 06:33:57AM -0500, Peter Davis wrote:<br>
<br>
> On Wed, Dec 8, 2010 at 11:54 PM, Heiko Oberdiek <<br>
> <a href="mailto:heiko.oberdiek@googlemail.com">heiko.oberdiek@googlemail.com</a>> wrote:<br>
><br>
> > On Wed, Dec 08, 2010 at 07:52:14PM -0500, Peter Davis wrote:<br>
> ><br>
> > > I've been Googling for information on how to use \includegraphics with<br>
> > > filepaths containing spaces.  I've found some relevant discussions, such<br>
> > as<br>
> > > here: <a href="http://programming.itags.org/tex/131025/" target="_blank">http://programming.itags.org/tex/131025/</a> but nothing that looks<br>
> > like a<br>
> > > robust and/or cross-platform solution.<br>
> ><br>
> > In case of pdfTeX in PDF: \usepackage{grffile}<br>
> ><br>
> > > Has there been any progress on this?<br>
> ><br>
> > AFAIK, no.<br>
> ><br>
><br>
> Thank you, Heiko.  No hope for us XeTeX users?  Hmmm.<br>
<br>
</div></div>It's more complicate, it depends on:<br>
* Primitive support:<br>
  * pdfTeX: \pdfximage<br>
    file name argument as general text (curly braces).<br>
  * XeTeX: \XeTeXpicfile, \XeTeXpdffile<br>
    file name argument in quotes, at least it is known that<br>
    quotes can be used because of XeTeX.<br>
    That solves the problem for spaces, but how quotes<br>
    can be used inside file names?<br></blockquote><div><br></div><div><br></div><div>I've tried quoting with XeTeX (Mik2.9), but no go.  I've tried both "s around the entire file spec., and replacing the " " with "\ ".  Neither of those approaches work.  Is there some other method of quoting?</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
* File test for existence<br>
  It is needed by graphics package, e.g. for finding a file<br>
  a supported extension.<br>
  * pdfTeX: several primitves can be used, pdftex.def uses<br>
    \pdffilesize with file name argument as general text.<br>
    And package `grffile' cures the problem for package graphics.<br>
  * XeTeX: \openin with file name in quotes.<br>
    Of course, graphics.sty does not know about quotes.<br></blockquote><div><br></div><div>From my (very limited) understanding, redefining the calls to \openin only works on Windows, not Mac or Linux systems.  At least, I've read that in some discussions.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
* Driver part:<br>
  * pdfTeX: PDF driver is part of pdfTeX, thus it's no issue here.<br>
  * XeTeX: Seems to be supported, but I don't know a specification<br>
    of xdv format.<br></blockquote><div><br></div><div>A spec. for xdv would be very useful indeed!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Thus I see, I will update package `grffile' to support<br>
spaces with XeTeX.<br></blockquote><div><br></div><div><br></div><div>That would be fantastic!</div><div><br></div><div>Thank you again, Heiko.</div><div><br></div><div>-pd</div><div><br></div></div>