Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to add draft watermark in LaTeX

📅 2010-May-05 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ draft, latex, watermark ⬩ 📚 Archive

 

While collaborating on or sharing an unfinished PDF document produced from LaTeX it is nice to remind everyone that it is in the draft stage. This can be indicated elegantly by adding a DRAFT watermark on every page behind the page content. To do this use the package draftwatermark in the LaTeX document preamble:

\usepackage{draftwatermark}

The draftwatermark package uses the everypage package to insert the watermark in every page, so that package might have to be installed too.

By default, the watermark is added to all pages. To insert on only the first page use:

\usepackage[firstpage]{draftwatermark}

The default watermark text is DRAFT. To insert a different watermark text (say BIO-HAZARD) use this command:

\SetWatermarkText{BIO-HAZARD}

The default lightness (or darkness) of the watermark text is too light for my taste. To set a different lightness use:

\SetWatermarkLightness{0.5}

The lightness value ranges from 1.0 for white and 0.0 for black. By default it is set to 0.8.

The default scale of the text is 1.2, which I find too small. To change the scale of the watermark text use:

\SetWatermarkScale{4}

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email