11 Apr
2024
11 Apr
'24
5:07 p.m.
On 4/10/24 21:48, Hans Hagen via ntg-context wrote:
On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote:
[...] I wonder whether there is a proper way in the Lua code to avoid [[\luaescapestring{}]] in \ctxlua. [...] context(tokens.scanners.string())
Many thanks for your reply, Hans.
\protected\def\PrintTheThing{\ctxlua{document.print_the_thing()}}
Sorry, but why \protected is required or recommended here? Many thanks for your help, Pablo