But I have to figure out the appropriate lower left corner and upper
right conner co-ordinates, how can I do that?
Thnak you very much,
--
Yu Shen
Software Designer
BNR, Ottawa, Canada
(613) 763-4581
My expression here does not represent BNR's.
Suppose that the general form of the bounding box comment is
%%BoundingBox: bbllx bblly bburx bbury
where bbllx, bblly, bburx, bbury are the lower left x-coordinate, lower left
y-coordinate, upper right x-coordinate and upper right y-coordinate respectively
of the figure.
To determine (bbllx,bblly) and (bburx,bbury):
Measure (in inches) from the left edge of the paper to the leftmost mark
of the figure and multiply the number by 72. The result is bbllx. Again
measure (in inches) from the bottom edge of the paper to the bottommost mark
of the figure and multiply the number by 72. This is bblry.
Measure (in inches) from the left edge of the paper to the righmost
mark of the figure and multiply the number by 72. This is bburx. Again
measure (in inches) from the bottom edge of the paper to the uppermost mark
of the figure and multiply the number by 72. The result is bbury.
Two _key_ points are to:
1. remember that the lower left tip of the paper is the (0,0) coordinate, and
2. multiply the measurements (in inches) by 72.
--
Rafia Bhore ra...@chopin.udel.edu
Graduate Student / Statistics 78 E. Delaware Avenue(Rees Hall)
Department of Mathematical Sciences Newark, DE 19716
University of Delaware (U.S.A) (302)831-8067
Come on folks, you don't want to guess. You have a computer to compute.
In this case, get the old (for LaTeX2.09) epsfig package from
macros/latex209/contrib/epsfig. It comes with a short PostScript
program and a UNUIX shell script which sends the ps program and your
eps file to the printer. In the printer the ps program computes the
bounding box and prints the numbers together with the eps stuff. Stick
the numbers into your document and you are all done. One iteration, no
guesswork, perfect results.
Volker
WARNING: DO NOT use any of the other things of the same package, as
they have been superseeded by files of the LaTeX2e graphics packet.
Some of the files have the same name, do not get mixed up!!!!!!!
>
> In order to insert postscript file into LaTeX or Framebuilder file, I
> need to convert postscript into EPS file. However, ps2epsi failed
> me. So by just trial and error, I found that by simply adding
> something like
> %%BoundingBox 0 0 600 700
> it worked.
>
> But I have to figure out the appropriate lower left corner and upper
> right conner co-ordinates, how can I do that?
>
my way of doing it when I don't write the PostScript myself is by
guess.
You start with a rough guess of what the bounding box could be then
you run ghostview on your file this way you see how the picture fit
into the bounding box. Then you resize the box until you are pleased
with the results. It works pretty fast, but it is not mechanical.
I have heard of ps2epsf packages, but I don't know them. ps2epsi
looks like a conversion package from a ps file to an epsi file which
is a ps file embedded with a small bitmap file which could allow easy
previsualisation of your file. I don't use epsi since all previewers I
use know how to deal with regular ps files (xdvi, xfig).
--
=====================================================================
Arnaud Février
fev...@res.enst.fr
finger fev...@rollins.res.enst.fr
http://www.res.enst.fr/~fevrier
=====================================================================
What I assume to be the same program (called bbfig) is also supplied
as part of the dvips distribution. The following is the subdirectory
on the VAX cluster at Monash with the source. The file bbfig (called
BBFIG. on VMS as here :-) is a unix shell script that you can run on a
given PostScript picture and pipe the output to a printer. The result
PostTScript code that prints your picture together with its calculated
BoundingBox. The C program VMSBBFIG does the equivalent for VMS, and
could presumably be adapted for other operating systems.
>-----------------------------------------------------------------------
Directory TEX_DISK:[TEX.TEX__SOURCE.DVIPS.DVIPS.CONTRIB.BBFIG]
BB.PS;2 24/24 5-FEB-1992 15:31:46.00 (RWED,RWED,RE,RE)
BBFIG.;2 1/4 5-FEB-1992 15:28:13.00 (RWED,RWED,RE,RE)
BBFIG.1;2 3/4 5-FEB-1992 15:31:46.00 (RWED,RWED,RE,RE)
BBFIG.HLB;2 10/12 24-APR-1994 12:19:09.26 (RWED,RWED,RE,RE)
BBFIG.HLP;4 3/4 24-APR-1994 12:18:45.65 (RWED,RWED,RE,RE)
INSTALLATION.;2 1/4 5-FEB-1992 15:31:46.00 (RWED,RWED,RE,RE)
VMSBBFIG.C;3 7/12 23-APR-1994 18:54:06.34 (RWED,RWED,RE,RE)
VMSBBFIG.OBJ;4 25/28 24-APR-1994 12:28:46.51 (RWED,RWED,RE,RE)
--
Stephen Harker was phs...@vaxc.cc.monash.edu.au
ex Monash University now s...@phadfa.ph.adfa.edu.au
now ADFA (Canberra) Baloney baffles brains: Eric Frank Russell
I've modified (I believe some other folks have done the same) the bbfig script so that it invokes ghostscript (either in X windows or quiet mode) to find out
the bounding box values. This way you save some paper.
You can get it from 141.212.102.27 (knob2.engin.umich.edu) in
the file pub/tmp/bbbig.tar.Z (sorry, I made a typo in the file name when
ftp'ing it over there). This is a temporary repository so the
file won't stay there for too long. I've tested it under Unix on Apollos, HPs,
IBM RS/6000, Suns, etc, using lp or lpr or flpr or prf or ghostscript.
Roque
If you have ghostview, you can read the displayed coordinates by moving the
mouse to the figure corners.
-Bard
--
Bård Grimsmo |Mail: SINTEF/Varmeteknikk |Home: Schives Gate 7
Research Engineer| 7034 Trondheim, Norway | N-7030 Trondheim
SINTEF Division |Phone: +47 73592505 | Norway
Termodynamics |Fax: +47 73593580 |Home phone: +47 73523801
(Termodata Co-op)|E-mail: Bard.G...@termo.unit.no|MIME-Mail is welcome
Thanks to everyone who helped me on the problem.
Here is the summary of the solutions, listed roughly in order of confidence.
1) Use bbfig, bbfig is a set of shell script and postscript programs
that can calculate the datum for BoundingBox. I used with satisfaction
the copy modified by oliv...@down.engin.umich.edu (Roque Donizete de
Oliveira) at 141.212.102.27 (knob2.engin.umich.edu) in the file
pub/tmp/bbbig.tar.Z. It also comes with a few packages, eg. dvips,
epsfig, etc. The version on NEXTSTEP can even allow mousing to define
the BoundingBox and update the BoundingBox statement in the postscript
program. This feature may also exist in some variants of bbfig.
2) Use ghostview read the coordinates of the lower left conner and
upper right conner, by using mouse to point.
3) Measure with a ruler in inch. The keys are that the lower left
conner is not necessarily the lower left extreme of the page, whose
coordinate is (0,0) and that the coordinates are in points (pt.) which
is 1/72 inch, so 1 inch = 72 pt. The BoundingBox is the portion on the
page that you want to insert.
4) Guess, trial and error.
Thank you again,