[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] encapsulated postscript from pic
From: |
Louis Guillaume |
Subject: |
Re: [Groff] encapsulated postscript from pic |
Date: |
Wed, 01 May 2013 23:02:58 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 |
On 4/23/13 3:34 PM, Doug McIlroy wrote:
Is there a tool or trick for getting encapsulated postscript from pic?
What I want is that the bounding box should have origin 0 0 and
be just big enough to cover the picture.
Doug McIlroy
I have this in my Makefile...
.ms.eps:
${GROFF} -stp -ms -dpaper=${PAGE} -P-b16 $< > $*.ps
${GS} -dNOPAUSE -sDEVICE=bbox -- $*.ps 2>$*.bbox
${SED} -e "/^%%Orientation/r $*.bbox" -e "/^%\!PS-Adobe-3.0/s/$$/
EPSF-3.0/" $*.ps > $*.eps
rm $*.bbox
... seems to do the trick.
Louis
- Re: [Groff] encapsulated postscript from pic,
Louis Guillaume <=