Hello Bruce, thanks for the reply. That answer will be useful for the .tex files when I switch to the project/product/component structure, but I don't think it helps in my case, because figures apparently do not use the “usepath” information.
I should have been more explicit in this, but I already have a \usepath[maindoc], which is how maindoc.tex can just do \include subdoc1 The problem I have at the moment is that a figure included from subdoc1 needs to have the full path maindoc/subdoc1/figure.png instead of just subdoc1/figure.png (or even better just figure.png, but that would be an extra), which seems to suggest that the path set by usepath is not used by the figure finding mechanism, apparently? Cheers, Giuseppe Bilotta Il giorno dom 8 mar 2026 alle ore 14:09 Bruce Horrocks <[email protected]> ha scritto: > > Does this previous answer help? > > <https://www.mail-archive.com/[email protected]/msg109517.html> > > > On 8 Mar 2026, at 12:41, Giuseppe Bilotta <[email protected]> wrote: > > > > Hello all, > > > > I'm using a file structure like this: > > > > maindoc.tex > > maindoc/subdoc1.tex > > maindoc/subdoc1/image.png > > maindoc/subdoc2.tex > > maindoc/subdoc2/otherimage.png > > > > I can use \usepath to include subdoc1 and subdoc2 from maindoc, but > > within each subdoc I have to use e.g. maindoc/subdoc1/image to find > > the file. Is there a way to make the externalfigure path list > > automatically include the usepath when it gets changed? > > > > As an alternative/in addition to this, is it possible to configure the > > figure search path so that it is always relative to the *current* > > input file rather than the current working directory or the main input > > file? > > > > And finally: does switching to a project/product/component layout > > solve this automatically? (I am planning the move but when I last > > tried this it stopped recognizing my first-page layouts and setups, so > > this is still pending.) > > > > Cheers, > > > > Giuseppe Bilotta > > > > — > Bruce Horrocks > Hampshire, UK > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : [email protected] / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
