How can we define the path if our file is at another place?
I got this one that in preamble, we will write
\usepackage{graphicx}
Then for uploading graphics we will use
\includegraphics{File.extension}
But what in case if file is at another place, how will I give the path to it, how will I center it and how can I add text to it?
Best Answer
For the sake of synchronizing our mind, lets assume:
Current
(for example),Current
is in a folder namedParent
,diagrams
containing diagrams is also in the folderParent
,photos
containing photos is in the folderCurrent
.By using
\graphicspath
you can declare the paths to the photos and diagrams you want to refer in you main input file. Each path must be enclosed in{}
and must be ended with/
.The remaining should be clear.