I am familiar with \graphicspath and have used it in numerous papers where all of my figures are in a single directory.
However, I am now working on a larger project and I have images hierarchically organized by year and month (i.e. all of the images for entries created during July 2016 are in ./Figures/2016/07).
I realize I could generate a long list of folders in the preamble declaration of \graphicspath, but I'd prefer simply updating the setting w/in the document so that for a given section of the document the \graphicspath is {Figures/2016/07} and in the next section it reset to {Figures/2016/08}.
Is there a straightforward way to do this?
UPDATE: I have added \listfiles to the preamble and updated the body so it has
\makeatletter \show\Ginput@path \makeatother
\graphicspath{{Figures/2016/07/}}
\makeatletter \show\Ginput@path \makeatother
And posted a copy of the .log file here
To me it looks like the new path is used once and then it reverts back to the path set in the preamble which is {Figures/}.
Here's an example.
> \Ginput@path=macro:
->Figures/.
l.3398 \makeatletter \show\Ginput@path
\makeatother
?
> \Ginput@path=macro:
->{Figures/2016/07/}.
l.3402 \makeatletter \show\Ginput@path
\makeatother
?
[94] [95]
...
[97]
Package hyperref Warning: Difference (2) between bookmark levels is greater
(hyperref) than one, level fixed on input line 3505.
<Figures/2016/07/IMG_0152.JPG, id=2868, 2788.4175pt x 1643.13875pt>
File: Figures/2016/07/IMG_0152.JPG Graphic file (type jpg)
<use Figures/2016/07/IMG_0152.JPG>
Package pdftex.def Info: Figures/2016/07/IMG_0152.JPG used on input line 3515.
(pdftex.def) Requested size: 430.00653pt x 253.38011pt.
Overfull \hbox (199.15846pt too wide) in paragraph at lines 3514--3516
[]\OT1/cmr/m/n/10.95 Notes on board from our dis-cus-sion. []
[]
...
LaTeX Warning: File `IMG_0161_and_0162_composite.png' not found on input line 3
936.
! Package pdftex.def Error: File `IMG_0161_and_0162_composite.png' not found.
See the pdftex.def package documentation for explanation.
Type H <return> for immediate help.
\makeatletter \show\Ginput@path \makeatotherbefore and after\graphicspathyield in your.log. – Werner Jul 26 '16 at 20:16\listfilesin your preamble and supplying the community with your.log**File List**. See Which package version am I using? – Werner Jul 27 '16 at 06:40.logdoesn't include any reference to the\showcommand I suggested. Moreover, the document compiled fine (or without error). – Werner Aug 10 '16 at 16:02\graphicspathwould revert back to something it was defined as before is when you redefine it within a group. Without seeing the code, I can only speculate. Regardless, I note that most of your packages are out-of-date. Update your distribution. – Werner Aug 11 '16 at 15:28