[NTG-context] printing tab in lua: print('a\tb') fails

Mojca Miklavec mojca.miklavec.lists at gmail.com
Wed Nov 26 20:07:07 CET 2008


Hello,

Here's a tiny question. The following command complains about
undefined control sequence.

\starttext
\startluacode
print('a\tb')
\stopluacode
hello
\stoptext

There is a workaround:
    print(string.format('a\t%s', 'b'))
but I find it weird. Even if the line above gets commented out with
two dashes it still complains.

I understand approximately why this happens, but is that intended?
Should I be using something else than \startluacode in the plethora of
different lua triggering commands?

Thanks,
   Mojca


More information about the ntg-context mailing list