[NTG-context] Escaping in LuaTeX

Fulvio Satta Yota_VGA at tiscali.it
Sun Jan 2 02:04:46 CET 2011

I have a problem with Lua and the "#" operator.
If I execute the following code I receive an error.

    local t = {1, 2, 3}


ConTeXt give me the message:

! Illegal parameter number in definition of \luacode.
<to be read again> 
l.4     tex.print(#t

And if I execute the "H" command I get:

You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I''m going to assume that you meant ##.

I've tryed with ##t, whit \#t, with \string#t, with \ctxlua instread of 
\startluacode and \stopluacode, and I've obtained some other errors, but 
ConTeXt always give me an error.

Maybe should I escape in another manner the "#" operator?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110102/3c6a70d6/attachment.pgp>

More information about the ntg-context mailing list