[texhax] includegraphics with spaces in the file path?

Peter Davis pfd at pfdstudio.com
Mon Feb 14 23:22:16 CET 2011


Just to re-open an old topic, I'm finding the current version of grffile.sty
works with XeTeX/XeLaTeX to allow me to use \includegraphics with filepaths
containing spaces.

However, I haven't found a canonical place to put grffile.sty so it works
system-wide.  If I put it in the same directory as my .tex files, it's
beautiful, but putting it in, for example "MiKTeX 2.9\tex\latex\grffile\",
doesn't work.

Is there some central place I can put this file so it will work with .tex
files in other directories?  I'm using MikTeX 2.9 on Windows, but I'm going
to want to work with a Mac installation as well.

Thank you!

-pd


On Thu, Dec 9, 2010 at 11:02 AM, Peter Davis <pfd at pfdstudio.com> wrote:

>
> On Thu, Dec 9, 2010 at 10:53 AM, Ulrike Fischer <news3 at nililand.de> wrote:
>
>> Am Thu, 9 Dec 2010 10:26:29 -0500 schrieb Peter Davis:
>>
>> > On Thu, Dec 9, 2010 at 10:02 AM, William Adams <will.adams at frycomm.com
>> >wrote:
>> >
>> >> On Dec 9, 2010, at 9:34 AM, Peter Davis wrote:
>> >>
>> >>> Will this work with \includegraphics in XeTeX, or should I be using
>> >> \XeTeXpicfile and \XeTeXpdffile ?
>> >>
>> >> grffile extends \includegraphics so use that.
>> >>
>> >>
>> > Thanks!
>> >
>> >
>> >>> (The .pdf file contains .dtx file attachted. 'tex grffile.dtx'
>> >>> extracts the package.)
>> >>>
>> >>> I'm afraid I don't understand.  How do I refer to the PDF file in this
>> >> command?
>> >>
>> >> Downlad the .pdf
>> >>
>> >> Open it in Adobe Acrobat (a recent version)
>> >>
>> >> Click on the paper clip icon (usually in the bottom-left corner)
>> >>
>> >> Drag grffile.dtx to a convenient location and process it as you would
>> any
>> >> .dtx
>> >>
>> >
>> >
>> > Thank you!  Is there some canonical location where this is supposed to
>> go?
>> >  I'm running MiKTeX 2.9.  I put the file in C:\Program Files\MiKTeX
>> > 2.9\source\latex\grffile\grffile.dtx.  However, when I try to tex it, as
>> > Heiko suggested, I get:
>> >
>> >
>> > Generating file(s) grffile.ins grffile.drv grffile.sty grffile-test1.tex
>> > ! Cannot find file grffile.dtx.
>>
>> Process the dtx in some temporary folder outside miktex. Miktex
>> blocks pdflatex from finding files in roots.
>>
>>
> Argh!
>
> Ok, I was able to do this in the local directory where my .tex files are,
> and it worked!  Thank you, Heiko and other who helped!  This is a great
> relief.
>
> -pd
>
>


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


More information about the texhax mailing list