Any ideas if getting rid of dependency on environmental variables is doable?
I agree it would be great if mtxrun could call/do setuptex on itself if needed.
At the moment for me it would be enough to know where exactly LuaTeX looks for configuration information (path & file name) and which files take precedence over others in the case of conflicts ... my current understanding is: 1. Environment variables 2. setuptex.tmf 3. texmf-context/web2c/context.cnf 4. texmf/web2c/texmf.cnf 5. ... As a second step, one would have to know what each of the settings in the above places is needed for. In particular, I would like to know which settings LuaTeX actually uses and which ones it ignores. But this can wait until the first question is figured out completely ;-) Best, Oliver