![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 02/04/2016 07:54 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 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.
Many thanks for the tip. But I really use foregroundstyle with \setlayerframed.
\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] \doifnot{\rawcountervalue[userpage]}{1}{\setlayer[test2]{page2}} \stopsetups
Many thanks for the conditional. Now it works perfectly fine. Pablo -- http://www.ousia.tk