Skip to content
Prev 32559 / 398530 Next

0 margin for creating eps files

On Tue, 27 May 2003, Duncan Murdoch wrote:

            
I don't see any need for that in my examples: R did the calculation
right to the nearest bp (and that's the accuracy of bounding boxes).

I suspect you mean GSView (on Windows): ghostview (a Unix program) does 
not AFAIK have that option.

If you just want a tight bounding box, gs's bbox device will give it to 
you.  On Unix, 

gs -sDEVICE=bbox -dBATCH -dNOPAUSE -q file.eps

will do something like

%%BoundingBox: 0 0 278 283
%%HiResBoundingBox: 0.000000 0.000000 277.992018 282.023991

just copy the first one into the file.  That's how all the figures in my 
books are included, for example.