I made a figure in inkscape to be included in my document. The document itself has the following structure
main.tex
|
|- /chapters
|- chap1.tex
|- chap2.tex
|- /figures
|- fig1.pdf
|- fig1.pdf_tex
|- fig1.svg
In the main.tex I include all the chapters separately. I also have there a \graphicspath{{chapters/figures}} to include the path to the figures. To export/import the figures from inkscape to LaTeX I follow this instruction. The including code looks like
\begin{figure}[]
\centering
\input{chapters/figures/fig1.pdf_tex}
\caption{Figure}
\label{fig:fig}
\end{figure}
When I now compile the document, I get the error message that file fig1.pdf is not found, even though it's in the same directory as fig1.pdf_tex.
Is there something I need to add to make it work?
EDIT: So I tried the solution proposed in here, but replacing the input statement with \import{chapters/figures}{chapters/figures/fig1.pdf_tex} leads to the same error.
includegraphicsline infig1.pdf_tex? This has been addressed before I think. – Chris H Feb 02 '17 at 09:42\includegraphics{chapters/figures/fig1.pdf}to your main.tex? – Ulrike Fischer Feb 02 '17 at 09:44\put(0,0){\includegraphics[width=\unitlength,page=1]{fig1.pdf}}%and I tried the solutions of Including pdf_tex images from inkscape, but that didn't worked either. – fukurai Feb 02 '17 at 09:55\includegraphics{chapters/figures/fig1.pdf}instead of the\inputstatement,pdflatexfinds the file and displays it in the document, just without the texts in the figure. – fukurai Feb 02 '17 at 10:06\includegraphics{fig1.pdf}. – Ulrike Fischer Feb 02 '17 at 10:22