groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Playing with the postscript output


From: Tadziu Hoffmann
Subject: Re: [Groff] Playing with the postscript output
Date: Tue, 7 Jan 2003 10:43:52 +0100
User-agent: Mutt/1.4i

> I want to put two of them on one page. Of course, I could
> write the groff code twice, or make an EPS file and include
> twice the EPS code in my document, but I would like to know
> if I can play with the postscript like that:
> 
> My postscript file is:
> 
> %%BeginPageSetup
> BP
> %%EndPageSetup
> 
>   % the whole stuff
> 
> EP
> 
> Is it possible to make of "the whole stuff" a postscript macro
> with something like:
> 
> /myprettycard {
>   % the whole stuff
> } def
> myprettycard
>   % some translate code
> myprettycard
> 
> Why do I want to do that? Because "the whole stuff" is a
> pretty big stuff with pictures in it, and I want to make a
> smaller postscript file by playing with macros. Of course
> I could have asked on comp.lang.postscript, but I thought
> groffers would know better what the postscript output is
> made of ;-)
> 
> Do you think it is possible ?

Yes, that's exactly how to do it.
(Only in PostScript it's not macros,
but procedures (aka executable arrays).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]