On Thu, Dec 23 2010, luigi scarso wrote:

> > PS: I still don't know the reason why my example fails

> catcode , I suppose

Indeed. The %-sign starts a comment in TeX.

\starttext
\startluacode
tex.print("\\hbox{ %s }", "a string")
\stopluacode
\stoptext

is nearly the same as

\starttext
\hbox{ %s }  a string
\stoptext

In both cases, the error message is:

! Missing } inserted.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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