[NTG-context] Problem calling Lua during \startsetups

Procházka Lukáš Ing. - Pontex s. r. o. LPr at pontex.cz
Tue Jan 25 14:01:28 CET 2011


Thanks you, Hans, -

On Tue, 25 Jan 2011 09:33:04 +0100, Hans Hagen <pragma at wxs.nl> 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 a filled rectangle on
>>>   % the left or right side (depending on whether n is even or odd)
>>>
>>>   % The code bellow fails [1]
>>>
>>>   \startluacode
>>>     print("N=", n)
>>>
>>>     if n == 2 then
>>>     else
>>>     end
>>>   \stopluacode
>>> \stopsetups
>
> \startluasetups layer
>
> \stopluasetups

- I guess to be used like:

\startluasetups layer
   \startluacode
     ...
   \stopluacode
\stopluasetups

> \luasetup{...} 	

To be used how? This way?

\setupbackgrounds[page][setups=\luasetup{layer},background={T}]

Best regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr at pontex.cz]
Pontex s. r. o.      [mailto:pontex at pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038



More information about the ntg-context mailing list