Two replies for the price of one... On Mon, Mar 23, 2026 at 09:51 (+0100), Denis Maier via ntg-context wrote:
> It's mentioned here: > https://wiki.contextgarden.net/Input_and_compilation/Project_and_file_manage > ment#Environment Denis, thanks. The existence of \usepath is useful information which someone (maybe even me!) should add to the \environment wiki page. It is unfortunate that the only example on the \usepath page shows it being used inside a \startMPinclusions, which might lead the unwary to assume it is only for MP files. It is also too bad that it doesn't document what the default path is. Which might be interesting, since (as shown) \environment acts differently than \input. > _____________________________________________________________________________ On Mon, Mar 23, 2026 at 10:16 (+0100), Hans Hagen wrote: > On 3/23/2026 1:31 AM, Jim wrote: >> Hi, >> If TEXINPUTS is not defined, file.tex has >> \input xyzzy.tex >> and xyzzy.tex is not in the same directory as file.tex, but rather in the >> parent directory, when I run >> context file.tex >> xyzzy.tex is (unsurprisingly to me) not found. >> But if instead file.tex has >> \environment xyzzy.tex >> then context (evidently) looks in the parent directory and (more >> surprisingly to me) finds xyzzy.tex. > ./xyzzy.tex > ./../xyzzy.tex > ./../../xyzzy.tex > has always been so; handy for when you share environments Indeed. How about ./../../../xyzzy.tex ? (No need to answer, I can test if I feel so inclined.) But it might be interesting to know what the default is. I hunted around in some Lua files for a while, but my lua-fu is too weak to track the default down. Jim ___________________________________________________________________________________ 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 ___________________________________________________________________________________
