Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks you, Hans, - On Tue, 25 Jan 2011 09:33:04 +0100, Hans Hagen wrote: On 25-1-2011 8:44, Wolfgang Schuster wrote: \startsetups layer % In my real code (= not in this example) % the value of 'n' is used here to set the appropriate background, % = n-th page of a PDF, and also to draw

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Wolfgang Schuster
Am 25.01.2011 um 09:00 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Thank you, Wolfgang, this works better. > > Actually I need to use '%' in the condition and that fails: > > --- > ... > \startrawsetups layer > % The value of 'n' is used here to set the appropriate background, > % = n-t

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Hans Hagen
On 25-1-2011 8:44, Wolfgang Schuster wrote: \startsetups layer % In my real code (= not in this example) % the value of 'n' is used here to set the appropriate background, % = n-th page of a PDF, and also to draw a filled rectangle on % the left or right side (depending on whether n is e

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thank you, Wolfgang, this works better. Actually I need to use '%' in the condition and that fails: --- ... \startrawsetups layer % The value of 'n' is used here to set the appropriate background, % = n-th page of a PDF, and also to draw a filled rectangle on % the left or right side (depe

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-24 Thread Wolfgang Schuster
Am 25.01.2011 um 08:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Hello, > > I encountered a bit weird thing when I used Lua in \startsetup: > > --- > \definelayer[T][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] > > \directlua{n, m = 1, 11} % Initialization > > \startsetups layer

[NTG-context] Problem calling Lua during \startsetups

2011-01-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered a bit weird thing when I used Lua in \startsetup: --- \definelayer[T][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] \directlua{n, m = 1, 11} % Initialization \startsetups layer % In my real code (= not in this example) % the value of 'n' is used here to set the ap