Difference between revisions of "Draft Watermark"

From Wiki
Jump to navigation Jump to search
 
Line 15: Line 15:
 
\stoptext
 
\stoptext
 
</texcode>
 
</texcode>
 +
[[Category:Sample documents]]

Revision as of 00:14, 29 November 2006

Here is a simple example of a 'Draft' watermark.

\setupcolors[state=start]

\defineoverlay[WatermarkOverlay]
              [{\framed[frame=off,foregroundcolor=gray]
               {\scale[sx=12,sy=12]
               {\rotate[rotation=20.0]{Draft}}}}]

\setupbackgrounds[page][background=WatermarkOverlay]

\starttext
\chapter{first}  \dorecurse{30}{\input tufte  }
\stoptext