You could define the search path using \graphicspath
I suppose that you could write someting like that in your preamble:
\graphicspath{{./}{/path/to/pic/}}
\includegraphics
will search first in the current directory (./
), then in /path/to/pic
So that your picture could be used as:
\includegraphics[scale=.5]{pics/image}
The image.png
will be first searched as ./pics/image.png
, and if not found as /path/to/pic/pics/image.png
Hints: you should not add the '.png': write image
instead image.png
Other possibility:
You have to transform your "preamble" into a TeX package by moving all your preamble folder in your personal TEXMF tree (or make symbolic link, if you are working on linux) or make your TeX distribution search in your preamble folder.
Third option:
On smart OS, you could make symbolic links to point to the preamble folder, and use relative path to access to your pictures. If you move your main folder, you just have to adapt this links.
On linux, a symbolic link named "folder" is created like this:
ln -s /path/to/target/folder folder
Best Answer
One can refer to the parent folder by
../
both on Unix systems and in Windows; thereforewill work for the bibliography file
1.bib
that resides in the parent folder.Note that paths on Windows are expressed with
\
, but for TeX related programs the slash/
works in its place and is of course preferable.