Il domenica 02 gennaio 2011 02:04:46 Fulvio Satta ha scritto:
> I have a problem with Lua and the "#" operator.
> If I execute the following code I receive an error.
> 
> \def\luacode%
> {\startluacode
>     local t = {1, 2, 3}
>     tex.print(#t)
> \stopluacode}
> 
> \starttext
>     \luacode
> \stoptext
> 
> ConTeXt give me the message:
> 
> ! Illegal parameter number in definition of \luacode.
> <to be read again>
>                    t
> 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?

In the previous mail I foget to say my ConTeXt version. I use ConTeXt minimals 
2010.12.31 08:59.

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to