ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Another q, about setups
@ 2006-07-29 17:53 The Wizard
  2006-07-31  9:11 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: The Wizard @ 2006-07-29 17:53 UTC (permalink / raw)


All -
    I have a small block which creates a "DRAFT" watermark as the page 
background:

% Create "Draft" watermark for later use
\doifmode{draft}{
% Put a "DRAFT" watermark in Sun Blue
\defineoverlay[Draft][{\sunbluet
  \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
\setupbackgrounds[page][background=Draft]
} % End watermark

Is there a way I can put it into a "setup" or "command" so I can turn it 
on/off by page/section?

-- 
Mark Almeida                             mark.almeida@sun.com
Solutions Architect                      (707)398-9524/x81132
Sun Client Solutions                     (707)429-0341 Home Office
                                         (707)480-5038 Cell

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Another q, about setups
  2006-07-29 17:53 Another q, about setups The Wizard
@ 2006-07-31  9:11 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2006-07-31  9:11 UTC (permalink / raw)




The Wizard wrote:
> All -
>     I have a small block which creates a "DRAFT" watermark as the page 
> background:
> 
> % Create "Draft" watermark for later use
> \doifmode{draft}{
> % Put a "DRAFT" watermark in Sun Blue
> \defineoverlay[Draft][{\sunbluet
>   \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
> \setupbackgrounds[page][background=Draft]
> } % End watermark
> 
> Is there a way I can put it into a "setup" or "command" so I can turn it 
> on/off by page/section?

My guess is the easiest way is to do

    \setupbackgrounds[page][background=]

on the page(s) where you do not want a background. You can put that
statement in a setup, of course.

Cheers, taco

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-31  9:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-29 17:53 Another q, about setups The Wizard
2006-07-31  9:11 ` Taco Hoekwater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).