For writing a lecture note, I have put my images in a subdirectory named "image". In the main.tex file I have added \graphicspath{{image/}}. I have also included:
\newcommand{\executeiffilenewer}[3]{%
\ifnum\pdfstrcmp{\pdffilemoddate{#1}}%
{\pdffilemoddate{#2}}>0%
{\immediate\write18{#3}}\fi%
}
\newcommand{\includesvg}[1]{%
\executeiffilenewer{#1.svg}{#1.pdf}%
{inkscape -z -D --file=#1.svg %
--export-pdf=#1.pdf --export-latex}%
\input{#1.pdf_tex}%
}
in order to include pdf_tex files.
In the main.tex file I am inserting the SVG file by:
\begin{figure}
\input{filename.pdf_tex}
\end{figure}
but I am getting the following error:
! LaTeX Error: File `relativeposition.pdf_tex' not found.
Can anyone tell me what I should do to keep all my SVG files in the image subdirectory and input them from main.tex?
\input{image/filename.pdf_tex}? In case of only one subdirectory it's not so heavy. – egreg Oct 15 '12 at 09:26