unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua
Hi, I wanted to test my earlier example (float placement) also with MKIV, but context ---luatex . give me this error message : unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua How can I make it work? Best, Denis
On 4/10/24 13:59, Denis Maier via ntg-context wrote:
Hi, I wanted to test my earlier example (float placement) also with MKIV, but context ---luatex … give me this error message : unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua How can I make it work?
Hi Denis, as far as I know, this is required first: context --luatex --generate BTW, although LuaTeX 1.18 has been released, my Linux64 ConTeXt contains version 1.17.x. In fact, the LuaTeX binary was removed in an update some weeks (or months) ago. I had to copy it from a backup from a previous version. I hope it helps, Pablo
-----Ursprüngliche Nachricht----- Von: Pablo Rodriguez via ntg-context
Gesendet: Mittwoch, 10. April 2024 19:35 An: ntg-context@ntg.nl Cc: Pablo Rodriguez Betreff: [NTG-context] Re: unknown script 'mtx-context.lua' or 'mtx-mtx- context.lua On 4/10/24 13:59, Denis Maier via ntg-context wrote:
Hi, I wanted to test my earlier example (float placement) also with MKIV, but context ---luatex … give me this error message : unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua How can I make it work?
Hi Denis,
as far as I know, this is required first:
context --luatex --generate
Thanks, Pablo. I've tried it, but it doesn't seem to work... I'm getting this: resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated And again: mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' Any ideas? Best, Denis
On 4/10/24 22:28, Denis Maier wrote:
[...] context --luatex --generate
Thanks, Pablo. I've tried it, but it doesn't seem to work...
I get the same result on Win64 when I move the luatex binary from the tex/texmf-win64/bin/ directory. This may sound stupid, but could you check whether the bin directory contain the required binary? Sorry, "luatex --version" and even "whereis luatex" should give the same result (but on Windows, it seems to be https://ss64.com/nt/where.html). I hope it may help, Pablo
-----Ursprüngliche Nachricht----- Von: Pablo Rodriguez via ntg-context
Gesendet: Donnerstag, 11. April 2024 17:26 An: 'mailing list for ConTeXt users' Cc: Pablo Rodriguez Betreff: [NTG-context] Re: unknown script 'mtx-context.lua' or 'mtx-mtx- context.lua On 4/10/24 22:28, Denis Maier wrote:
[...] context --luatex --generate
Thanks, Pablo. I've tried it, but it doesn't seem to work...
I get the same result on Win64 when I move the luatex binary from the tex/texmf-win64/bin/ directory.
This may sound stupid, but could you check whether the bin directory contain the required binary?
Sorry, "luatex --version" and even "whereis luatex" should give the same result (but on Windows, it seems to be https://ss64.com/nt/where.html).
I hope it may help,
Pablo
Ok. It wasn't there. I have now copied it from my Miktex installation, but it still does not work. (Looks like some path issue. The luatex binary from the miktex installation seems to take priority over the one now in the ConTeXt installation. Looks like I'm getting somewhere...) Thanks for your help, Denis
On 4/11/24 17:39, Denis Maier via ntg-context wrote:
[...] Ok. It wasn't there. I have now copied it from my Miktex installation, but it still does not work. (Looks like some path issue. The luatex binary from the miktex installation seems to take priority over the one now in the ConTeXt installation. Looks like I'm getting somewhere...)
I wonder whether the path order might give priority. But in any case, I wonder whether it is intended that current latest (from the ConTeXt distribution) is intended neither to have the latest LuaTeX nor to have any LuaTeX binary at all. Hans (or Luigi), are we (just humble users) missing something here? Many thanks for your help, Pablo
Hi Denis, I made a similar solution for docker image [minidocks/context](https://hub.docker.com/r/minidocks/context): [https://github.com/minidocks/context/commit/9b3ccc1eb62e556cada29b5b761207a526bca52e](https://github.com/minidocks/context/commit/9b3ccc1eb62e556cada29b5b761207a526bca52e). You can get inspired. Everything works as it should: ``` $ docker run --rm -it minidocks/context --luatex --version resolvers | globbing | confusing filename, name: 'CHANGELOG.md', lower: 'changelog.md', already: 'ChangeLog.md' mtx-context | redirect luametatex -> luatex: luatex --luaonly --socket "/usr/share/tex/texmf/bin/mtxrun.lua" --script mtx-context --luatex --version --redirected resolvers | globbing | confusing filename, name: 'CHANGELOG.md', lower: 'changelog.md', already: 'ChangeLog.md' mtx-context | ConTeXt Process Management 1.06 mtx-context | mtx-context | main context file: /usr/share/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2024.04.01 08:59 mtx-context | main context file: /usr/share/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2024.04.01 08:59 ``` Best, Martin Hasoň
On 4/11/2024 5:25 PM, Pablo Rodriguez via ntg-context wrote:
On 4/10/24 22:28, Denis Maier wrote:
[...] context --luatex --generate
Thanks, Pablo. I've tried it, but it doesn't seem to work...
I get the same result on Win64 when I move the luatex binary from the tex/texmf-win64/bin/ directory.
This may sound stupid, but could you check whether the bin directory contain the required binary?
Sorry, "luatex --version" and even "whereis luatex" should give the same result (but on Windows, it seems to be https://ss64.com/nt/where.html).
I hope it may help, it searches for mtxrun.lua and contextl.lua in the same path so you need:
luametatex.exe mtxrun.exe (can be link to luametatex.exe) context.exe (can be link to luametatex.exe) context.lua mtxrun.lua all in the same (bib) path ... always has been so ... Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 4/11/24 18:56, Hans Hagen via ntg-context wrote:
[...] it searches for mtxrun.lua and context.lua in the same path so you need:
luametatex.exe mtxrun.exe (can be link to luametatex.exe) context.exe (can be link to luametatex.exe) context.lua mtxrun.lua
all in the same (bib) path
... always has been so ...
But now it seems that luatex has disappeared from our bin directories. Was this intended (because of the issues with the build farm)? Many thanks for your help, Pablo
participants (4)
-
denismaier@mailbox.org
-
Hans Hagen
-
Martin Hasoň
-
Pablo Rodriguez