0

On Linux, to specify a path to use across the document with \includegraphics I simply use

\graphicspath{{/home/John\ Francis/Desktop/Report/Pictures/}}

I am currently using a Windows machine and that does not work. How should I specify Windows directories? I tried

\graphicspath{{C:/Users/John\ Francis/Desktop/Report/Pictures/}}

and

\graphicspath{{C:\Users\John\ Francis\Desktop\Report\Pictures\}}

but it hasn't work.

migrated from stackoverflow.com Dec 21 '15 at 12:52

This question came from our site for professional and enthusiast programmers.

1

After some additional research, I found out that if pictures are at the same directory as the .tex file, \graphicspath{{some_path}} is unnecessary. Therefore, \includegraphics will just assume that image is placed on the working directory.

0

\graphicspath{{imagestemplate/}{images/}}

will look at images in two subdirectories under your .tex file path (namely imagestemplate and images)

If you have more than a few images I would not keep them in the root working directory.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.