Am 12.01.2013 um 18:54 schrieb Procházka Lukáš
Hello Wolfgang,
some more attempts:
The sample Lay3 is simple enough and brings some text to the top of the page:
---- \setupbodyfont[30pt] \setuplayout[page]
\starttext \definelayer[beforetext]
\setupbackgrounds [page] [background={foreground,beforetext}]
\setlayer[beforetext]{\red BEFORE}
The Text! \stoptext ----
This works well.
The Lay4 differs in one point - it encloses the text into \start/stop-TEXpage:
---- \setupbodyfont[30pt]
\starttext \startTEXpage \definelayer[beforetext]
\setupbackgrounds [page] [background={foreground,beforetext}]
\setlayer[beforetext]{\red BEFORE}
The Text! \stopTEXpage \stoptext ----
In the latter case, the red text "BEFORE" doesn't appear.
What's wrong? How to make it appear?
Move \definelayer and \setupbackgrounds *before* \startTEXpage because the environment creates a local group and you background setup is lost. Wolfgang