This is a continued thought from here.
If I have a figure folder hierarchy such as:
./Figures/Apple/a.pdf
./Figures/Apple/b.pdf
./Figures/Apple/c.pdf
./Figures/Banana/a.pdf
./Figures/Banana/b.pdf
./Figures/Banana/c.pdf
Is there any method to string search all paths,
such that in scenarios in which:
\includegraphics{a.pdf}
has duplicates, the user could use a partial path string
to still get the image, such as:
\includegraphics{Figures/Banana/a.pdf}
\includegraphics{/Banana/a.pdf}
\includegraphics{Banana/a.pdf}
\includegraphics{ana/a.pdf}
\includegraphics{a/a.pdf}
All of these should find a unique answer in the search path.
I understand that the full path could get me there,
but in cases where that path is long and could easily change,
it would be nice to only need to extend the string
until it becomes unique.
ana
anda
? I just assumed it wouldn't work without some additional tool..Figures/Banana/a.pdf
Banana/a.pdf
anda.pdf
should all work if TEXINPUTS includes.//
or./Figures//
\graphicspath
. If that is too repetitive, e.g. because you have too many documents, I would suggest to create shortcuts in the form of symlinks; you can then update in one place only in case your folder locations to actually change.