First of let me admit that I've very new to the LaTeX, so this may be obvious and I just do see it, but here's my question:
I'm trying to write a set of macros to automatically downsample images... sort of like degrade.sty
, but for images that are inserted at arbitrary sizes in the document. What I would like to do is redefine \includegraphics
so that this can be accomplished for existing documents. In order to find the intended graphics file, I need to know what paths are currently in the graphics path. Alas, I cannot figure out how to determine what those paths are. Is this possible?
\makeatletter\typeout{\Ginput@path}\makeatother
. The former stems doing a\show\graphicspath
. Or do you want to do something with it programmatically?\graphicspath
. Anyway, ultimately, I'd like to provide it as an input to a script using\write18
.\Ginput@path
exists (in other words, actually test whether a call to\graphicspath
has been made) and consequently use/act on\Ginput@path
. I'm not sure how to do that with\write18
though.