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
  • As soon as I have some time left, I will look into it.
    – AlexG
    Commented Apr 17, 2013 at 7:54
  • 1
    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
    Commented Apr 23, 2013 at 9:20
  • BTW, Your \includegraphics line will only work with pdflatex.
    – AlexG
    Commented Apr 23, 2013 at 12:56
  • @AlexG Please make that an answer
    – Joseph Wright
    Commented Aug 13, 2013 at 10:56

2 Answers 2


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.


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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .