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, 2016 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. Apr 22, 2016 at 8:26

1 Answer 1


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}? Jul 17, 2017 at 19:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .