groff
[Top][All Lists]
Advanced

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

[Groff] Playing with the postscript output


From: Thomas Baruchel
Subject: [Groff] Playing with the postscript output
Date: Mon, 6 Jan 2003 22:28:28 +0100
User-agent: Mutt/1.2.5i

Brest, le lundi 6 janvier

Hi,

drawing the announcement card for my baby with groff ;-)

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" has 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 ?

-- 
Deux choses remplissent le coeur d'une admiration et d'une vénération
toujours nouvelles et toujours croissantes, à mesure que la réflexion
s'y attache et s'y applique : le ciel étoilé au-dessus de moi et la loi
morale en moi. (Emmanuel Kant)

reply via email to

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