Final message, really. Now the postscript hackers on this list can
start pointing out all the errors in my postings. :-)
> From: Calum Galleitch <[EMAIL PROTECTED]>
> Date: Sat, 21 Jun 2003 22:02:38 +0000
>
> % -- draw "first time" indication
> %%postscript /firsttime { % usage: len x y firsttime
> %%postscript exch -9 add exch 2 copy
> %%postscript M 0 10 rmoveto /Times-Roman 16 selectfont (1) show
I forgot to point out that in the above, the command "show" displays a
string at the current point and in the current font. The string is
the argument (in parentheses) given to show. In other words, in the
above command, the:
(1) show
displays the numeral "1" at the current location.
I think what you're hoping to do is to create a function with an
additional argument, which contains the string to display. Your
function would probably look something like this:
% -- draw "first time" indication
%%postscript /displaycustom { % usage: len x y (text) displaycustom
%%postscript /texttodisplay exch def
%%postscript exch -9 add exch 2 copy
%%postscript M 0 10 rmoveto /Times-Roman 16 selectfont texttodisplay show
%%postscript M 0 6 rlineto currentpoint stroke M
%%postscript 30 add 0 rlineto currentpoint stroke M
%%postscript 0 -6 rlineto stroke
%%postscript } bdef
% -- start / stop of firsttime indication
%%deco 1( 5 - 24 0 0
%%deco 1) 5 displaycustom 24 0 0
The only changes were to change the name of the function to
"displaycustom" instead of firsttime and add a fourth argument
containing the actual text to display.
Jeff
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html