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 ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________