[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] encapsulated postscript from pic
From: |
Mike Bianchi |
Subject: |
Re: [Groff] encapsulated postscript from pic |
Date: |
Thu, 2 May 2013 10:24:44 -0400 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
On Wed, May 01, 2013 at 11:02:58PM -0400, Louis Guillaume wrote:
> 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
Sweet! A grateful community thanks you!
--
Mike Bianchi