Hi Guiseppe, welcome back ;) Giuseppe Bilotta schrieb:
Hello all,
I have a couple of questions concerning the use of layers in ConTeXt. I'm working with Luigi Scarso on a layout which is characterized by some fixed-position elements surrounding the actual main body of text.
For the fixed-position elements, I'm using layers. However, my ConTeXt is a little rusty[*], so there are a couple of things which I need hints for.
The first one is very simple: is there a way to 'fix' the layer's content "until they change"? I've currently set them as page backgrounds, but their content gets reset on each new page.
The second question is slightly more complex: is there a way to add contents to a layer, rather than replacing the current layer content? Something like a macro
\addtolayer[layername][hoffset=whatever(optional)]{additional content}
use a collector (Details, p.75) instead; I have no experience with them, but setup should be the same as for layer. % - - - - - \definecollector[foo][state=repeat] \starttext \switchtobodyfont[32pt] \setcollector[foo]{\strut eat more...} \flushcollector[foo] \page[yes] \setcollector[foo][hoffset=6cm]{\strut poppler} \flushcollector[foo] \stoptext % - - - - - Greetings, Peter