If the image is in the document's directory this works:
\usepackage{graphicx}
\usepackage{grffile}
\begin{document}
\input{"image name with spaces"}
\end{document}
If the image is in a sub directory called images this works:
\usepackage{graphicx}
\graphicspath{{./images/}}
\begin{document}
\input{imagenamewithoutspaces}
\end{document}
But, again if the image is in a sub directory called images, this does not work:
\usepackage{graphicx}
\usepackage{grffile}
\graphicspath{{./images/}}
\begin{document}
\input{"image name with spaces"}
\end{document}
Am I doing something wrong or is there a limitation when using grffile with graphicspath?
Edit
The graphic I input is a .pdf_tex-file created by Inkscape's PDF+LaTeX export. I input the file by \input{"image name with spaces.pdf_tex"}. In this file \includegraphics{image name with spaces.pdf} is called.
image name with spaces.pdf_tex? (But I always wonder why people waste their life time to get file names with spaces working, when it is so easy to replace the spaces by something sensible.) – Ulrike Fischer Nov 12 '15 at 14:13images. (In my case it is because I want to support another application that automatically exports with spaces. Actually, I wonder why LaTeX does not support file names with spaces by default given that they are allowed in modern OSs.) – Daniel Nov 12 '15 at 14:35import. And this support is not bygrffile. – Daniel Nov 12 '15 at 14:50inputand embrace with quotes for the tex file, like\input{"./images/image name with spaces.pdf_tex"}and (2) add\usepackage{grffile}and\graphicspath{{./images/}}to the preamble for the inclusion of the graphics that happens within the the file. – Daniel Nov 12 '15 at 14:58\input{"images/image name with spaces.pdf_tex"}should work fine. See http://tex.stackexchange.com/questions/241828/define-path-for-packages-in-the-latex-file-analog-of-inputpath-or-graphicspa for a way to set search pathes for other files. – Ulrike Fischer Nov 12 '15 at 15:00\includegraphicsis more tricky. My knowledge of LaTeX is very limited. – Daniel Nov 12 '15 at 15:01