This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: BoundingBox of graphic? (JadeTeX)


> When making PostScript, with JadeTeX, from a test document with an im=
> age, I
> get the following error message:
> 
> ! LaTeX Error: Cannot determine size of graphic in FLOWCHRT.EPS
> (no BoundingBox).

It usually means what it says. EITHER flowchrt.eps isn't really an EPS
file at all but some other format wrongly named, OR it is a regular
PostScript file, not Encapsulated PostScript, OR it has been created by
a defective application, so it has no BoundingBox comment.

Regular PS files do not require a BoundingBox comment, although any
decent application will put one in for completeness.

> My questions are:
> 1. How worried should I be by this?

Yes. Without the BoundingBox comment, LaTeX has no way to know how big
the image is, so it cnnot leave the right amount of size for it, nor
can it resize it correctly.

> 2. Is there a way to avoid it? (The image-library of the Modular
> Stylesheets?)

Use an application which creates valid EPS. But this sounds like it's
a file from a collection which ought to be Ok already. Has something
slipped somewhere? Norm?

> PostScript _is_ produced, and the image is there alright.

You can fix it by hand. 

1. Print the EPS file.
   If it doesn't print, you may need to manually eject the page
   by pressing FF on your printer control panel. 

2. Draw a rectangle round the image so that the four lines fall just
   outside the image.

3. Using the bottom LH corner of the page as a reference point (0,0)
   measure the (x,y) coordinates of the lower LH corner (x1,y1) of 
   the rectangle and the upper RH corner (x2,y2).

4. Edit the EPS file and add the line

   %%BoundingBox: 26 49 596 842

   (replacing the four values with x1 y1 x2 y2

5. Save and exit. Now the file has an approximate BoundingBox.

Try to process it with your LaTeX document. If the printing is not
quite what you wanted you can adjust the BoundingBox by hand (but
it's usually better to get LaTeX to move and rescale it).

///Peter


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]