Skip to main content

Section 27.6 Watermarks

Output can contain a watermark, which is prominent text in the background of a document. You might use it to make a draft version (with a date?), or a CONFIDENTIAL version, or a document intended for limited distribution, such as an instructor's solution manual.

To use, specify the text, and an optional scaling factor to adjust the size. If your text has spaces, you may need to enclose the string in quote marks so that it passes correctly into xsltproc. For example, all on one line,

xsltproc -stringparam watermark.text "DRAFT 2034-05-25"
  -stringparam watermark.scale 0.5 pretext-latex.xsl fauna.xml