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 Apr 17 '13 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 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.


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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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