Re: Where does \environment look?

Denis Maier via ntg-context <[email protected]>
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
It's mentioned here:
https://wiki.contextgarden.net/Input_and_compilation/Project_and_file_manage
ment#Environment



> -----Ursprüngliche Nachricht-----
> Von: Jim <[email protected]>
> Gesendet: Montag, 23. März 2026 01:32
> An: [email protected]
> Betreff: [NTG-context] Where does \environment look?
> 
> 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.
> 
> The wiki page for \environment does not describe where \environment will
hunt for
> the given file.  Is the "search path" which \environment uses documented
> somewhere?  Failing that, can someone in the know tell me where it looks?
> 
> Thanks.
>                                 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
> ___________________________________________________________________
> ________________

___________________________________________________________________________________
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
___________________________________________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.