Posting other peoples' hints: Watermarks in LaTeX

I found myself today with the desire to incorporate a bit of watermark-ish text and graphic into a LaTeX document. The regular graphics commands don’t work very well with this, so I went googling and found the code below.

Note that the following isn’t my tip, but the page that references the code points to a 404 link. I tracked down the google cache to get the original link back out and thought I’d share.

   \usepackage{eso-pic}    \usepackage{color}    \usepackage{type1cm}    \makeatletter     \AddToShipoutPicture*{%     \setlength{\@tempdimb}{.5\paperwidth}%     \setlength{\@tempdimc}{.5\paperheight}%     \setlength{\unitlength}{1pt}%     \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%    %\makebox(0,0){\rotatebox{45}{\textcolor[gray]{0.75}{\fontsize{5cm}{5cm}\selectfont{Draft}}}}    \makebox(0,0){\includegraphics[scale=1]{../figures/LETTERHEAD.PDF}}     }    }    \makeatothe

There are two makebox lines present. Uncomment the first to use a text or stamp the output of another command on the page; or use the second (replace the filename) to use a graphical watermark. Also, remove the asterisk from the opening AddToShipoutPicture command to have your image stamped on every page, rather than just the first.