[NTG-context] String in Luatex

2007-08-26 Thread luigi scarso
The following macro is wrong: \def\TestC{% \directlua0{% \obeyspaces \obeylines code =[[ class Test(object): def __init__(self): self.a=[0,3,81,2,-1] self.b=self.a[:] self.a.sort() def get(self): return self.a,self.b ]] }} ! LuaTeX error [string luas[0]]:1: unexpected symbol

Re: [NTG-context] String in Luatex

2007-08-26 Thread Hans Hagen
luigi scarso wrote: The following macro is wrong: \def\TestC{% \directlua0{% \obeyspaces \obeylines hm, you want to expand this kin dof stuff inside the directlua? code =[[ class Test(object): def __init__(self): self.a=[0,3,81,2,-1] self.b=self.a[:] self.a.sort()

Re: [NTG-context] String in Luatex

2007-08-26 Thread luigi scarso
On 8/26/07, Hans Hagen [EMAIL PROTECTED] wrote: luigi scarso wrote: The following macro is wrong: \def\TestC{% \directlua0{% \obeyspaces \obeylines hm, you want to expand this kin dof stuff inside the directlua? As a last resorse to preserve spaces I must preserve spaces and newlines.