Skip to content

Instantly share code, notes, and snippets.

@Luzifer
Created March 23, 2013 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Luzifer/5228528 to your computer and use it in GitHub Desktop.
Save Luzifer/5228528 to your computer and use it in GitHub Desktop.
Little sniplet to render a "DRAFT" text into every page of a TeX document. Use before \begin{document}
\usepackage{eso-pic}
\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.85}%
{\fontsize{4cm}{4cm}\selectfont{DRAFT}}}}%
}%
}
\makeatother
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment