[NTG-context] Stange behavior of \startluacode

Aditya Mahajan adityam at umich.edu
Wed Oct 6 01:36:59 CEST 2010


On Sun, 3 Oct 2010, Hans Hagen wrote:

> On 3-10-2010 1:46, Aditya Mahajan wrote:
>> Hi,
>> 
>> The following snippet
>> 
>> \startluacode
>> -- \undefined why should a comment matter
>> a = 10
>> \stopluacode
>> 
>> fails with
>> 
>> system > error on line 4 in file bug.tex: Undefined control sequence ...
>> -- \undefined
>> why should a comment matt a = 10
>> \dodostartluacode ...and \directlua \zerocount {#1
>> }}
>> l.4 \stopluacode
>> 
>> 
>> Bug or limitation?
>
> feature ... the content gets expanded
>
> texnically I could catch comments but it's not worth the effort (and 
> slowdown)

OK. I documented this on the wiki.

Aditya


More information about the ntg-context mailing list