On 1/18/23 14:41, Bruce Horrocks via ntg-context wrote:
[…] Perhaps the Wiki only needs to point out that if you get a Lua related error and the error log lists the entire contents of \startluacode ... \stopluacode then a possible source of the error is a \command somewhere in there?
Hi Bruce, from what I understand is that undefined TeX commands cannot be added to Lua comments. If I’m not wrong (in my previous statement), I think this is counterintuitive, since undefined commands are fine in TeX comments and undefined variables are fine inside \startluacode … \stopluacode. So I added https://wiki.contextgarden.net/Programming_in_LuaTeX#Undefined_Commands_in_L.... Let me know whether I missed something. Many thanks for your help, Pablo