I'm modified the following code from this post to add a couple of vertical watermarks on a page. However, the code places these watermarks on every page.
Is there a way to restrict watermarking to the first page or certain pages of my amsbook?
\documentclass{amsbook}
\usepackage{graphicx}
\usepackage{eso-pic}
\makeatletter
\AddToShipoutPicture{%
\setlength{\@tempdimb}{.5\paperwidth}%
\setlength{\@tempdimc}{.5\paperheight}%
\setlength{\unitlength}{1pt}%
\protect{\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
\makebox(-515,0){\rotatebox{90}{\textcolor[gray]{0.90}%
{\Huge Draft: \today}}}
\makebox(515,0){\rotatebox{270}{\textcolor[gray]{0.90}%
{\Huge Draft: \today}}}}}}
\makeatother
\begin{document}
Hi
\newpage
Hi, again.
\end{document}
\usepackage[firstpage]{draftwatermark} \SetWatermarkText{Draft} \SetWatermarkScale{1}– GlabbichRulz Aug 06 '18 at 12:45