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

Hans Hagen pragma at wxs.nl
Thu Nov 27 11:04:46 CET 2008


Mojca Miklavec wrote:

> I thought that \startluacode should be behaving the same way as
> verbatim environments where commands inside verbatim have no
> influence, but apparently I was wrong.

no, more like MPcode where one can mix things

if the luacode would not expand macros, then we'd need rather tricky 
code when we'd like to have tex put stuff in there


\startluacode
     print('a\string\tb')
\stopluacode

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list