after a long search without results I hope you can help me.
Here is my problem: I can't load .pdf files with \includegraphics
.
The background is that I have one repository to create my frequent used pictures and now I try to work with two of them within another repository. This leads to long relative paths (../../../../../a/b/c/d/file.pdf
) and get the error "File ... not found". I create this path with TexStudio -> include graphic
and checked it several times manually. TexStudio shows me the right preview when I slide over the path. When I place the file in my working directory or a few folders above \includegraphics
works fine.
\documentclass{standalone}
\usepackage{import}
\usepackage{graphicx}
\begin{document}
\begin{tabular}{cc}
\includegraphics[width=0.4\linewidth]{longpath/file1} &
\includegraphics[width=0.4\linewidth]{longpath/file2}
\end{tabular}
\end{document}
../../../../../../../Vorlagen/Berichte_und_wissArbeiten/Abbildungen/Pumpen_und_Luefter/Dia__Arbeitspunkteinstellung_durch_Bypass_prinzip/Arbeitspunkteinstellung_durch_Bypass_prinzip
/images/
in the directory where you have your main document and fill this with softlinks to the images (this assumes linux or similar OS). That way you don't duplicate the images and can still edit them in their original place.