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