TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to use relative images with the animate package. I have tried both using the \graphicspath as shown below and typing in the relative path. Either way the code fails. Can anyone explain why this doesn't work (since animate is built on the graphicx package)? Any suggestions for a work around? I would really like to be able to keep my images in a separate directory

    \graphicspath{{"../../../Project Work/Shot Database/Data/CFD/15/"}}

    %This line works

    %This line doesn't
share|improve this question
As soon as I have some time left, I will look into it. – AlexG Apr 17 '13 at 7:54
It works if you don't use directory names with spaces. Replace spaces with underscores or use CamelCase names. In general, spaces in directory and file names are a bad idea. Don't understand why people cannot resist using them. – AlexG Apr 23 '13 at 9:20
BTW, Your \includegraphics line will only work with pdflatex. – AlexG Apr 23 '13 at 12:56
@AlexG Please make that an answer – Joseph Wright Aug 13 '13 at 10:56

Indeed, animate makes use of graphicx' \graphicspath in order to locate graphics files in other directories than the standard ones.

Your example would perfectly work if you didn't use spaces in your directory names. Spaces should always be avoided. CamelCase names or underscores are good alternatives.

share|improve this answer

Try \graphicspath{{../../../Project Work/Shot Database/Data/CFD/15/}} without "".

And remember put this line before \begin{document}.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.