tex.print("\string\\latinmodern")

should be at least double backslashes: tex.print("\\string\\latinmodern") I would think

met vriendelijke groet
dr. Hans van der Meer


On 13 Oct 2021, at 18:01, Hans Åberg via ntg-context <ntg-context@ntg.nl> wrote:

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.


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________