[OS X TeX] Including jpg w/ graphicx
Morten Høgholm
morten.hoegholm at gmail.com
Tue Nov 22 21:45:44 CET 2005
On Tue, 22 Nov 2005 21:36:02 +0100, Christopher Allen
<Christopher.T.Allen.95 at Alum.Dartmouth.ORG> wrote:
>> You must add braces around the name but the real problem is the use of
>> ~ because it's usually active. Try this instead:
>> \graphicspath{{\string~/Pictures/}}
>
> I'd had the second pair of braces, but LaTeX didn't seem to care, or at
> least the error didn't change, so it didn't care yet.
>
> \string seems to do something, though. Hmmm... I'd copied the
> graphicspath part from someone else's email a while ago, and I hadn't
> deleted \string. It seems odd to me that with \string sometimes I get
> errors saying the file cannot be found, but I never got that error
> without \string. When it does compile with \string I get a blank page.
Putting \string before ~ makes the error message go away but it's not the
correct way, sorry. You need to eventually put a harmless ~ in there. One
way is this:
\expandafter\graphicspath\expandafter{\expandafter{\detokenize{~/Pictures/}}}
and this works correctly (just tested).
--
Morten
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list