Thanks you, Hans, -

On Tue, 25 Jan 2011 09:33:04 +0100, Hans Hagen <pra...@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:l...@pontex.cz]
Pontex s. r. o.      [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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