Am 12.01.2013 um 18:54 schrieb Procházka Lukáš <[email protected]>: > 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / 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 ___________________________________________________________________________________
