Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to set path of images to be included? I copied over previous TEX folder into new folder name, and added file.PNG into the Figures folder, and made sure that

\graphicspath{{Figures/}}

is included as worked previously, not sure why copying TEX into new folder, TEX cant find .PNG images when I tried using:

\includegraphics[width=120mm]{Capture_ZCBplot.png}

which worked before? Somehow it is pointing to old directory and hence graphics from old directory still valid?

share|improve this question
Welcome to TeX.sx! I am not sure if I get you right but the figure folder must be in the same folder as the document you are trying to compile. – Peter Jansson Jan 17 at 18:39
   
on paths Input file folder/ (it's written for \input but is valid for any directory issues. ) – bloodworks Jan 17 at 18:44
Have you tried deleting the files which are produced during the compilation process. Sometimes this helps. – Dave Jan 17 at 18:45
Hi Dave, deleting which files? Do you mean the generated .PDF or the image files that are still being pointed to, which in this case is still to old folder? – sebastian cheung Jan 17 at 18:48
On Linux, Unix and similar (Mac OS X) make sure that the filename is written like in the source code and doesn't differ in capitalization, e.g. file.PNG is a different file than file.png. – Martin Scharrer Jan 17 at 18:49
show 2 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.