Am 26.04.2011 um 12:33 schrieb Ian Lawrence:

> I have a layer that I'd like to appear on some pages but not others,
> and for which I'd like to switch the content by page. (I need the
> layer to precisely and reliably locate some graphics.
> 
> However, as I see it, you can only set the visibility of a layer in
> \definelayer, \setupbackgrounds - and these ought to preceed
> \starttext
> 
> Any pointers / elegant suggestions / neat solutions?


A better solution requires more information from you!

\definelayer[test]

\startsetups[test]
\doifinset{\pagenumber}{1,3,7,10}{\setlayer[test][x=3cm,y=7cm]{\ssd Test: 
\test}}
\stopsetups

\setupbackgrounds[page][background=test,setups=test]

\starttext
\dorecurse{12}
  {\def\test{\convertnumber{A}{\recurselevel}}%
   \dontleavehmode\page}
\stoptext

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

Reply via email to