Am 16.07.2011 um 19:35 schrieb Marcin Borkowski:
> Anybody help, please...?
Layers are objects which can be placed on any place of the page.
The difference between \setupbackgrounds and \flushlayer can be
seen in the example below. With \setupbackground the layer content
is put on the requested position (behind the text) after TeX has
finished the page. With \flushlayer ConTeXt starts a new page where
all collected layers are placed without any other text.
\definelayer[one]
\definelayer[two]
\setupbackgrounds[text][text][background=one]
\starttext
\input ward
\setlayer[one][x=3cm,y=3cm]{\tt One}
\page
\setlayer[two][x=3cm,y=3cm]{\tt Two}
\input ward
\flushlayer[two]
\input ward
\stoptext
As your plan is to make a document with layers only \flushlayer
is the better choice because you can do this:
\definelayer[content]
\definestartstop
[PAGE]
[after={\flushlayer[content]}]
\setuplayout[page]
\starttext
\startPAGE
\setlayer[content][x=3cm,y=4cm]{A}
\setlayerframed[content][x=7cm,y=2cm,frame=off,foregroundcolor=blue]{B}
\stopPAGE
\startPAGE
\setlayer[content][x=3cm,y=8cm]{\externalfigure[cow]}
\stopPAGE
\stoptext
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
___________________________________________________________________________________