[OS X TeX] Re: draftcopy "weirdness"
John B. Thoo
jthoo at yccd.edu
Mon Apr 11 06:03:20 CEST 2011
On Apr 10, 2011, at 12:00 PM, in MacOSX-TeX Digest, Vol 42, Issue 9,
people wrote:
Date: Sat, 9 Apr 2011 17:57:32 -0400
From: Alain Schremmer <schremmer.alain at gmail.com>
> On Apr 9, 2011, at 5:38 PM, John B. Thoo wrote:
>
>>
>> On Apr 9, 2011, at 3:27 AM, Peter Vamos wrote:
>>
>>> At 04:44 +0100 9/4/11, Alan Munn wrote:
>>>
>>>> That's because the draftcopy package uses Postscript specials to
>>>> place the text. From the docs:
>>>>
>>>> "Currently this package works only for Postscript and not for
>>>> PDF, sorry."
>>>
>>> Alternatively, use the pdfdraftcopy package, available from
>>>
>>> <http://sarovar.org/frs/?group_id=52&release_id=97>
>>>
>>> Surprisingly, this is not on my TeXLive 2010 distribution.
>>> Licensing issues perhaps?
>>
>> Thank you, Peter. I tried it and it works as advertised.
>> Unfortunately, it does not offer a "timestamp" option. Any
>> suggestions for how I can include a timestamp with "pdfdraftcopy"?
>> Thanks.
>
> I was intrigued: So I copied your header and typed a few words. I
> went TeXShop 2.38 > Typeset > TeX and DVI and then hit Typeset on
> the source page and got back my few words duly stamped DRAFT April 9,
> 2011
I am using TeX-Live 2009 in Mac OS X 10.6.7. As you can see, if I use "draftcopy" with the "timestamp" option and 'latex'+'divpdf', I get a watermark (on every page) with the word "DRAFT" and, below that, the date and time.
<http://ms.yccd.edu/math/Drafts/ast_draft.pdf>
Date: Sat, 9 Apr 2011 15:11:43 -0700
From: Michael Sharpe <msharpe at ucsd.edu>
> \usepackage[draft]{pdfdraftcopy}
> \draftstring{DRAFT \today}
That works great to print the day, but not the time.
Date: Sun, 10 Apr 2011 01:22:14 +0200
From: Claus Gerhardt <claus.gerhardt at uni-heidelberg.de>
> I found this latex code via Google
>
> \usepackage{graphicx,type1cm,eso-pic,xcolor}
>
> \makeatletter
> \AddToShipoutPicture{%
> \setlength{\@tempdimb}{.5\paperwidth}%
> \setlength{\@tempdimc}{.5\paperheight}%
> \setlength{\unitlength}{1pt}%
> \put(\strip at pt\@tempdimb,\strip at pt\@tempdimc){%
> \makebox(0,0){\rotatebox{45}{\textcolor[gray]{0.70}%
> {\fontsize{3cm}{3cm}\selectfont{Final Version}}}}%
> \makebox(-100,-300){\rotatebox{45}{\textcolor[gray]{0.70}%
> {\fontsize{2cm}{2cm}\selectfont{Internal Use}}}}
> \makebox(-500,-0){\rotatebox{90}{\textcolor[gray]{0.70}%
> {\fontsize{0.7cm}{0.7cm}\selectfont{\textcopyright Copyright 2008 - Jean Martina}}}}
> }%
> }
> \makeatother
That's neat. How do I include a timestamp? I tried copying some code from draftcopy.sty, but that didn't work for me. (I'm really not good at this.)
Date: Sun, 10 Apr 2011 16:32:27 +0100
From: Peter Vamos <P.Vamos at exeter.ac.uk>
> Additionally, if you want the time on a new line then you have to
> enclose the draftstring in a parbox or the minipage environment. For
> example, to approximate what you originally wanted, try this:
>
> \usepackage[draft]{pdfdraftcopy}
> \draftstring{%
> \begin{minipage}{17cm}
> \begin{center}
> \ DRAFT \quad\today
> \end{center}
> \end{minipage}
> }
That puts the date on a new line very nicely; however, there is no time.
Thank you all for your help. I appreciate it a lot.
---John.
-----------------------------------------------------------------------
"It is worth thinking deeply about simple things."
---Jesus De Loera, UC Davis mathematics, 12 Jan 2011
More information about the macostex-archives
mailing list