home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-05-17 | 2.6 KB | 95 lines | [TEXT/NISI] |
-
- Below are the PostScript programs used in the backdrop and RRect Frame
- macros. It should be possible to use these programs in programs other
- than nisus by pasting them to documents and then changing the font to
- PostScript Escape (paste them into the header if you want the effect
- on every page). See the customization document for hints on changing
- font sizes etc.
-
- Of course if it doesn't work it ain't my fault :-).
-
-
-
- % "backdrop" code -- prints CONFIDENTIAL diagonally across page
- % in light grey.
- gsave
- initgraphics
- /width 612 def
- /height 792 def
- /Helvetica-Bold findfont 100 scalefont setfont
- /center {dup stringwidth pop 2 div neg 0 rmoveto} def
- .90 setgray
- width 2 div height 2 div 36 sub moveto
- -55 rotate
- (CONFIDENTIAL) center show
- grestore
-
-
-
-
-
- % "round rectangle" code -- prints a round rectangle with
- % Title, name, and date (or any 3 text strings) inserted.
- % Designed to be used as a poor man/woman's presentation
- % program.
- gsave
- initgraphics
- %%%%%%%%% Start User Customizable Section %%%%%%%%%
- /title (My Test Presentation) def
- /name (Dale Southard Jr.) def
- /date (University of Toledo) def
- /titlefont /Helvetica-Bold def
- /namefont /Helvetica-Bold def
- /datefont /Helvetica-Bold def
- /titlesize 18 def
- /namesize 14 def
- /datesize 14 def
- /arcrad 36 def
- 2 setlinewidth
- /width 612 def
- /height 792 def
- /landscape true def
- /marg 72 def
- %%%%%%%%%%% End User Customizable Section %%%%%%%%%%%
- /center {dup stringwidth pop 2 div neg 0 rmoveto} bind def
- landscape true eq {height width /height exch def /width exch def
- 0 width translate -90 rotate} if
- /xto width marg sub def
- /yto height marg sub def
- marg dup arcrad add moveto
- marg yto xto yto arcrad arcto clear
- xto yto xto marg arcrad arcto clear
- xto marg dup dup arcrad arcto clear
- marg dup dup yto arcrad arcto clear
- 0 setgray
- stroke
- titlefont findfont titlesize scalefont setfont
- /slength title stringwidth pop def
- slength 0 ne {
- /xcenter marg xto marg sub 2 div add def
- xcenter yto moveto
- slength titlesize add dup 2 div 0 rmoveto neg 0 rlineto
- 1 setgray stroke
- xcenter yto titlesize 4 div sub moveto
- 0 setgray title center show
- } if
- namefont findfont namesize scalefont setfont
- /slength name stringwidth pop def
- slength 0 ne {
- marg arcrad add marg moveto
- slength namesize add 0 rlineto
- 1 setgray stroke
- marg arcrad namesize 2 div add add marg namesize 4 div sub moveto
- 0 setgray name show
- } if
- datefont findfont datesize scalefont setfont
- /slength date stringwidth pop def
- slength 0 ne {
- xto arcrad sub marg moveto
- slength datesize add neg 0 rlineto
- 1 setgray stroke
- xto arcrad slength datesize 2 div add add sub marg datesize 4 div sub moveto
- 0 setgray date show
- } if
- grestore
-