[comp.text.tex] DRAFT or CONFIDENTIAL Overlay

jj1h+@andrew.cmu.edu (Joseph Jackson) (01/16/91)

Excerpts from netnews.comp.lang.postscript: 14-Jan-91 DRAFT or
CONFIDENTIAL Overlay sommer@BINAH.CC.BRANDEIS (517)

> I am looking for a style file to use with LaTeX that will overlay a
> large diagonal light gray "DRAFT" or "CONFIDENTAIL" across my output
> generated with Tom Rokicki's dvips. Advice on some other method to
> achieve the same result would also be welcome. 

> NOTE: I'm operating under VMS! I cannot unpack shell archives! 

Wow, and I thought I was the only person left in the world running VMS.  ;-)

Have you considered DEC's SPRINT product?  It's a security enhancement
tool that does what you need for both PostScript and text files.  It's
exremely customizable via a layout file consisting of a simple set of
instructions.  

If you use DEC's ScriptPrinter system, you'll recognize this as an
extension of that symbiont.  This means that if you have non-DEC
PostScript printers, the product might not work for you.  

I got information on it at Fall DECUS.  It's a "customer supported"
product available through a program I'd never heard of before, so your
neighborhood DEC rep. might have trouble dealing with it.  The address
they publish on their information sheet is:

Digital Equipment Corporation
Linda K. Hitchcock
Security Products Marketing Consultant
2525 Augustine Drive
Santa Clara, CA 95054
(408) 748-4564

dupuie@icarus.eng.ohio-state.edu (Scott T. Dupuie) (01/16/91)

In article <YbYpshm00VQo8iVkoX@andrew.cmu.edu> jj1h+@andrew.cmu.edu (Joseph Jackson) writes:
>Excerpts from netnews.comp.lang.postscript: 14-Jan-91 DRAFT or
>CONFIDENTIAL Overlay sommer@BINAH.CC.BRANDEIS (517)
>
>> I am looking for a style file to use with LaTeX that will overlay a
>> large diagonal light gray "DRAFT" or "CONFIDENTAIL" across my output
>> generated with Tom Rokicki's dvips. Advice on some other method to
>> achieve the same result would also be welcome. 
>
A simple way to achieve this is by executing the following \special command
at the beginning of your file:

  \special{!userdict begin /bop-hook{gsave 200 30 translate
  65 rotate /Times-Roman findfont 216 scalefont setfont
  0 0 moveto 0.7 setgray (DRAFT) show grestore}def end}

This command should write a light DRAFT across each page in the document,
although I have not tried it yet. To write confidential, simply replace
(DRAFT) with (CONFIDENTIAL).

This trick is documented in the files provided with Tom Rokicki's DVIPS.
It is not in the man page, but in a separate documentation file. I don't
recall the name.

Scott T. Dupuie
The Ohio State University
Dept. of Electrical Engineering
Columbus, OH 43210
dupuie@ee.eng.ohio-state.edu

derosa@motcid.UUCP (John DeRosa) (01/18/91)

dupuie@icarus.eng.ohio-state.edu (Scott T. Dupuie) writes:

>  \special{!userdict begin /bop-hook{gsave 200 30 translate
>  65 rotate /Times-Roman findfont 216 scalefont setfont
>  0 0 moveto 0.7 setgray (DRAFT) show grestore}def end}

I found that the .7 setgray is too dark, so I set it to .99
which is dark enought to be highly noticable but not so 
dark that it is hard to read the normal text.

To change to preliminary or confidential or another long word,

1) I changed the font size to 100 to allow the word to really
   stand out. 

2) The 200 30 should be changed to 150 100 so that the starting
   point is down far enough to the lower left to allow the 
   word to be printed properly. 

3) The rotation of the text needs to be changed to allow the 
   word to print from corner to corner.  I changed the 65 rotate
   to 55 rotate.
-- 
=       John DeRosa, Motorola, Inc, Cellular Infrastructure Group          =
= e-mail:    ...uunet!motcid!derosaj, motcid!derosaj@uunet.uu.net          =
= Applelink: N1111                                                         =
=I do not hold by employer responsible for any information in this message =

joe@ima.isc.com (Joe Chapman) (01/19/91)

John DeRosa writes:
>To change to preliminary or confidential or another long word,
[...]
>2) The 200 30 should be changed to 150 100 so that the starting
>   point is down far enough to the lower left to allow the 
>   word to be printed properly. 

You could also calculate the starting point, like this (or,
rather, its LaTeX equivalent):

%!
%	center a string on a page at 45 degrees
%	assumes 8-1/2 by 11 page, portrait mode
%		-- center at (306, 396)
%	assumes that this will be used in a save/restore context
%
/diagonal {
	newpath 0 0 moveto
	dup true charpath flattenpath pathbbox
	2 index sub 2.828 div /ycor exch def
	2 index sub 2.828 div /xcor exch def pop pop
	306 xcor sub ycor add
	396 xcor sub ycor sub
	moveto 45 rotate show
} def
%	test:
/Times-Bold findfont 72 scalefont setfont
.9 setgray
(MARKETING DRECK) diagonal
showpage

--
Joe Chapman	joe@ima.isc.com