Sorry as maybe this question is a bit rhetorical,

I have my main latex file in


while i split my other chapters in another chapters folder


and my images are in a folder by itself


The problem is in my chapter tex file, I am unable to locate my images. Appreciate someone can direct to me what is the best way to locate my images.

Currently, I have set

%!TEX root = ../thesis.tex 

at the beginning of every chapter .tex files

and when I call images:


I got the error:

! LaTeX Error: File `images/general-scheduling' not found
  • 1
    use \graphicspath{} in the preamble to set your path to the images. then simply call them by their file name. and welcome to TeX.sx – naphaneal Apr 22 '16 at 7:19
  • It depends on the folder where you are when you start to compile thesis.tex. If you are in C:\latex, then \includegraphics[height=.4\textwidth]{images/general-scheduling} should work. – Ulrike Fischer Apr 22 '16 at 8:26

I'm not so familiar with windows relative path but in UNIX systems you should use:


With images/general-scheduling LaTeX will seek for the images in chapters/image/ so a wrong path.

  • But as the root files sits in C:/latex/thesis.tex shouldn't it be \includegraphics[height=.4\textwidth]{./images/general-scheduling}? – user36296 Jul 17 '17 at 19:56

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.