My folder structure looks like that:
While putting the chapters into the base file Report.tex
works completely fine I get trouble when I try to insert the graphics into the chapters.
For example: How can I put the file Image_1
into Chapter_1.tex
? As you can see the target file Image_1
is located in a neighboured directory of Chapter_1.tex
.
Some command in Chapter_1.tex
like...
\includegraphics[blabla]{../Graphics/Image_1}
... leads to the error "! LaTeX Error: File `../Graphics/Image_1' not found."
Minimum Working Examples (MWE):
For file Report.tex
in root directory:
\documentclass{book}
\usepackage{graphicx}
\usepackage{blindtext}
\begin{document}
\input{Chapters/Chapter_1}
\input{Chapters/Chapter_2}
\input{Chapters/Chapter_3}
\end{document}
For file Chapter_1.tex
in subdirectory Chapters
:
\chapter{First chapter}
\blindtext
\includegraphics{../Graphics/Image_1}
For file Image_1.tex
in subdirectory Graphics
:
\includegraphics{example-image-golden}
Do you have any ideas how to cross-input files from parallel directories? Thank you very much!
\include{}
command.\input
you need to use the path relative to the root file (not the input file), so try\includegraphics{Graphics/Image_1}
instead.