[OS X TeX] Package "draftwatermark" -- adding date-time stamp

Vamos, Peter P.Vamos at exeter.ac.uk
Wed Jan 23 17:57:42 CET 2013


John,
On 23 Jan 2013, at 15:20, John B. Thoo wrote:

Hi.  I'd like to add a date-time stamp to "draftwatermark"; I'm using pdflatex.
[snip]
How do I do this?  Thanks.

Exactly the same way as discussed previously here (Subject: draftcopy "weirdness"  12/4/11) but now with the package "draftwatermark" instead of  the then used package "pdfdraftcopy". So try this now

==========
\usepackage{calc}
\usepackage{ifthen}
\newcounter{hours}\newcounter{minutes}
\newcommand\printtime{%
 \setcounter{hours}{\time/60}%
 \setcounter{minutes}{\time-\value{hours}*60}%
 \ifthenelse{\value{hours}<10}{0\thehours}{\thehours}:\hspace{-0.33em}
 \ifthenelse{\value{minutes}<10}{0\theminutes}{\theminutes}
}

%%%%%%%%%%%%%%%%%%%
\usepackage{draftwatermark}
\SetWatermarkText{
\begin{minipage}{17cm}
\begin{center}
 DRAFT  \\ {\fontsize{48}{17}\selectfont \today, \printtime}
\end{center}
\end{minipage}


================

Hope that this does what you want.

Peter

PS: what was wrong with the previous code which you rather flatteringly called "vamosdraft.sty"?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20130123/698d13ed/attachment.html>


More information about the macostex-archives mailing list