I have a \graphicspath command at the beginning of a document (the main document):
\graphicspath{{images/}{extras/images/}}
I have sub-documents into which I insert images (actually SVG files from Inkscape):
\def\svgwidth{\linewidth}
\input{/another/path/images/ppn522-graphs.pdf_tex}
These sub-documents may be inserted into different main documents.
But they need some information about images to be included so I need to do this:
\def\svgwidth{\linewidth}
\graphicspath{{/another/path/images/}}
\input{/another/path/images/ppn522-graphs.pdf_tex}
Problem: this overrides my first \graphicspath declaration: my logo images (and extras/images) are not found anymore (generating errors) after I insert the \graphicspath{{/another/path/images/}}
My question: how could I append an entry to the \graphicspath ?
Or is there a variable that contains the \graphicspath value so I can re-use it ?
\graphicspath{\thegraphicspathvalue{/another/path/images/}}
EDIT: I already tried this, but it does not work :
\graphicspath{\typeout{\Ginput@path}{../images/}}