Created
March 23, 2013 17:17
-
-
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}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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