[NTG-context] Minor bug in Lua or ConTeXt
Pablo Rodriguez
oinos at gmx.es
Wed Jan 18 10:21:42 CET 2023
On 1/18/23 00:36, Bruce Horrocks via ntg-context wrote:
> ConTeXt ver: 2023.01.04
>
> The following MWE won't compile because of the \dummycommand line
> even though it is a comment. Not sure whether it's a minor bug or an
> unavoidable aspect of allowing embedded Lua.
Hi Bruce,
I think your code should read:
\startluacode
-- \\dummycommand
\stopluacode
\starttext
Hello
\stoptext
BTW, in pure Lua:
a = "\a"
b = "\\b"
print(a..b)
outputs "\b".
Sorry, I lack the knowledge to explain this, but backslash seems to be
an special char in pure Lua too.
Just in case it might help,
Pablo
More information about the ntg-context
mailing list