Re: Where does \environment look?

Jim Diamond <[email protected]>
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
Hi Hans,

On Mon, Mar 23, 2026 at 18:01 (+0100), Hans Hagen wrote:

> On 3/23/2026 3:52 PM, Jim Diamond wrote:

>> 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.

> thit would be \useMPpath (a bit of deduction here)

It helps when you know the system inside-out.  Or so I imagine. ;-)
 
>> 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.

> for an old-timer like you,

Sorry I didn't reply earlier, I was chasing some kids off my lawn.

> it also takes some adaptation to use \input {foo} instead of the
> non-character terminated \input foo i guess,

Yes, old habits are still dying hard.

Having said that, as you might suspect, some of my questions are from
looking at ANSS-CE, and in ANSS JAL delimited the file args for
\environment with (just) whitespace.  Ditto in his example '\input's.

> in mp there's also this input that takes a non-string which makes input a
> bit of an outlier in both machineries


>> 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.

> so here is some of the magick:

Thanks.  I like magic(k)!

> \starttext

> \enabletrackers[resolvers.locating]

> \input{tufte}

> \enabletrackers[resolvers.*]

> \environment does-not-exist

> \disabletrackers[resolvers.locating]

> \stoptext

> See log file. All the magic is in the data-ini, data-res, data-pre etc
> files. Don't loose sleep over it.

In fact, I might even sleep better, knowing one more thing about how to
track down things all by myself.

Also thanks for your other two messages on this topic.

                                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
___________________________________________________________________________________
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.