In Mac OSX, using latex, I have a long class file that includes various macros containing commands of the sort
\includegraphics[#5]{/Users/myname/Desktop/book/images/#2.eps}
\includemovie[#4]{/Users/myname/Desktop/book/movies/#2.mpg}
I would like to make this portable to computers with different absolute paths. (For compatibility reasons, I need absolute paths.) Probably the simplest would be to define a \imagedirectoryname and a \moviedirectoryname and do something like
\includegraphics[#5]{\imagedirectoryname/#2.eps}
\includemovie[#4]{\moviedirectoryname/#2.eps}
How exactly do I do this in latex? Thank you in advance for any help! It is for a book that is free to download on the internet.
I am using OSX, latex, MacTeX/texlive 2014, and the dvi -> ps -> pdf typesetting method.
P.S. Yes, I know that movie15 is obsolete, but it works, and the successor package media9 is not compatible with it, as far as I understand.
\graphicspath{{<pathA>}{<pathB>}{..}{..}}and then not including the path in your\includegraphicscommand. – Werner Dec 31 '14 at 16:52\newcommand\imagedirectoryname{/Users/myname/Desktop/book/images}but usually best is not to use absolute paths at all, it is almost never needed. – David Carlisle Dec 31 '14 at 16:53