![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
I was suggested a long ago to hack the file /usr/local/texlive/2021/texmf-dist/tex/generic/context/luatex/luatex-math.tex and use LuaTeX directly, now using Version 1.13.2 (TeX Live 2021), but I get this error: (./luaotfload.sty (/usr/local/texlive/2021/texmf-dist/tex/latex/base/ltluatex.tex)) (./luatex-math-modified.tex[\directlua]:1: attempt to index a nil value (global 'arguments') stack traceback: [\directlua]:1: in main chunk. l.132 }
? …
It is from this segment in the modified luatex-math.tex:
\ifdefined\directlua \directlua { if arguments["mtx:lucidabright"] then tex.print("\string\\lucidabright") else tex.print("\string\\latinmodern") end } \fi
Is there a workaround? —I may ditch this setup in favour of using 'context' directly, so it is not so important if there is no fix. I have no clue .. it looks like you load a latex style so I suppose that 'arguments' is no longer defined there (as it worked for you in the
On 10/13/2021 6:01 PM, Hans Åberg via ntg-context wrote: past). Maybe 'arguments' lives in some namespace? \directlua {for k, v in pairs(_G) do print(k.v) end} This will show you what is in the global namespace, maybe 'arg'? 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 -----------------------------------------------------------------