Am 2006-01-15 um 18:54 schrieb Hans Hagen:
\setupbackgrounds[rightpage][page][state=start, background=logolayer] \setupbackgrounds[rightpage][page][state=start, background=senderlayer] the second background overwrites the first, but I can't define them together, because there could be several combinations of 5-7 layers. background={logolayer,senderlayer}
Thanks, I knew that, but I've some more layers and need to activate/ deactivate them independent from each other. At the moment I use modes to "mark" which layers should be visible. If I want to change something, I switch everything off and add those layers that I need. Like this: \def\EnableLayer#1{\enablemode[#1layermode]\setups[#1layersetup]} % *layersetup typesets and activates *layer \def\DisableLayer#1{\disablemode[#1layermode]\ResetLayers} \startsetups firstpagesetup \setuplayout[header=96mm, footer=20mm] \EnableLayer{marks} \EnableLayer{logo} \EnableLayer{sender} \EnableLayer{account} \EnableLayer{recipient} \ResetLayers \stopsetups \startsetups normalpagesetup \setuplayout[header=10mm, footer=10mm] \EnableLayer{marks} \EnableLayer{logo} \DisableLayer{recipient} \DisableLayer{sender} \DisableLayer{account} \ResetLayers \stopsetups \def\LetterFirstPage{\setups{firstpagesetup}} \appendtoks\setups{normalpagesetup}\to\everyaftershipout \def\ResetLayers{% \setupbackgrounds[page][background=] \setupbackgrounds[rightpage][page][background=] \doifmode{senderlayermode}{% \expandparameters \setupbackgrounds[rightpage][page][background= {\currentvalue,senderlayer}] } \doifmode{recipientlayermode}{% \expandparameters \setupbackgrounds[rightpage][page][background= {\currentvalue,recipientlayer}] } \doifmode{accountlayermode}{% \expandparameters \setupbackgrounds[rightpage][page][background= {\currentvalue,accountlayer}] } \doifmode{logolayermode}{% \expandparameters \setupbackgrounds[page][background={\currentvalue,logolayer}] % maybe rightpage } \doifmode{markslayermode}{% \expandparameters \setupbackgrounds[rightpage][page][background= {\currentvalue,markslayer}] } } I still wonder why those backgrounds are only visible on one page, even if I use state=repeat and don't call normalsetup. Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer)