Pablo Rodriguez <mailto:oi...@gmx.es>
4. Februar 2016 um 19:43

But I get two test2 on page 2:

\definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start]
\setlayer[test1]{page1}
Set the layer content after \starttext or load a font before you set it,
otherwise context uses a monospace font as fallback.
\definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue]
Remove "state=continue".
\startsetups[testlayer]
\setlayer[test2]{page2}
\stopsetups
You have to include a check for the first page, possible are

\startsetups[testlayer]
    \ifnum\rawcountervalue[userpage]=1\else
        \setlayer[test2]{page2}
    \fi
\stopsetups

or

\startsetups[testlayer]
    \doifnot{\rawcountervalue[userpage]}{1}{\setlayer[test2]{page2}}
\stopsetups

Wolfgang
___________________________________________________________________________________
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