OK, now maybe I get it. This might help someone...
It's the **contents** of the layer that get repeated if you set
repeat=yes in \definelayer - as in
http://wiki.contextgarden.net/Layers
If you do a \setlayer then this simply adds to the existing stack of
contents displayed on the layer. You get more and more stuff until
you do a \resetlayer, assuming you set repeat=yes in the
\definelayer. Thus(?) \definelayer is all about the contents of the
layer (? Apart from setting the dimensions and so on... I think that's
what deflected me into thinking that this command was about the
canvas, and the \setlayer about the contents.)
The \setupbackgrounds[page][state=repeat,background={XXX}] is the
command that puts the logical layer on each page.
If this seems about right then I'll have a go at adding a sentence or
two to the wiki...maybe on-one else thinks of it in terms of the
existence and then the population of a layer...?
On 26 April 2011 17:44, Hans Hagen
On 26-4-2011 6:26, Ian Lawrence wrote:
But when I get to a new page I'd like to be able to change that plug, or even have the layer blank
that happens automatically unless the state of the layer is set to 'repeat'
so normally, once a layer is placed its content is forgotten
\page[yes]
\setlayer [SPTinteractivemedium] % name of the layer [hoffset=0px, voffset=0px,] % placement (from upper left corner of the layer) { \externalfigure [dummy][width=100px]} % the actual contents of the layer
And;
\page[yes] \setlayer [SPTinteractivemedium] % name of the layer [hoffset=0px, voffset=0px,] % placement (from upper left corner of the layer) { \externalfigure ??????? } % HOW TO SET THE \externalfigure to NOTHING, or hide the layer?
\resetlayer [SPTinteractivemedium]
I might try changing the backgrounds on a page by page basis, but this seems inelegant, as the \setups ought to be before the \starttext..?
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------