Im trying to link from my preamble to some pictures used in the header. My problem is i use the same preamble in multiple documents.
lets say the preamble and the needed picture is in the top folder, and i have two different main files for two different reports, each in its own subfolder.
when i call the preamble i get an error telling me the path to the picture is not correct. as far as i have gotten it seems that i need to have two preambles with the path from the include folder to the preamble picture. (which sort of takes the idea of a preamble away)
folder structure:
work
preamble
pics
project1
main.tex
project2
main.tex
i would expect that in my preamble i could do this
\includegraphics[scale=0.5]{pics/image.png}
the i have tried with setting this command ind the main.tex
\newcommand{\folder}{/path/to/pic}
\includegraphics[scale=0.5]{\folder/pics/image.png}
but that doesnt work either.
does any one know how to solve this problem? (i Hope i made the problem clear)