On Fri, 14 Sep 2001, Kaspar Pflugshaupt wrote:
> Hello,
>
> I'm using Kontour (from KDE 2.2) to produce an EPS illustration for my
> article written in Lyx. Kontour doesn't seem to be able (yet?) to generate an
> EPS with the bounding box just around the figure; I always get a full A4
> size, thus a lot of whitespace around my illustration.
>
> Can I crop the image after inserting it into Lyx? Or is there another piece
> of software that allows me to do this?
You can just use vi (or any other text editor, but for this kind of work
I think vi is the most adapted).
The begining of an EPS file looks like:
%!PS-Adobe-2.0 EPSF-2.0
%%BoundingBox: 0 0 567 539
The four numbers after '%%BoundingBox' are the limits of the image (x1 y1
x2 y2). You just play a bit with it, using 'ghostview' or any other
previewer to see what's going on. Usually a few try are enough to get
what you like :)
Yannick