Search code examples
pdflatexepsdvi-tex

dvi generation: no bounding box


I wrote a research paper in latex and generated pdf using Kile. Now I need a dvi file also. Kile's quick build process does not give a dvi file, but its 'Latex' compile process does.

So I tried to compile the document, and it gave errors for includegraphics saying "figure not found". When I append the correct extensions to the image names, that errors stopped coming but new errors came "bounding box is missing".

I added bounding box values and now DVI file is being generated. My questions are: I have tried giving very high and low bounding box values but there is no deformation in the PDF. Why? Can I generate a DVI without giving bounding box values?


Solution

  • Normally, LaTeX accepts figure file formats different from PDFLaTeX. That is, you can include .pdf and .jpg and run PDFLaTeX without problems (your case, I suppose), but running LaTeX may cause several errors (figure not found, as you mentioned).

    To compile a document with LaTeX you need to provide .eps graphic files which, by default, include a bounding box.

    Over-simplifying, LaTeX works with boxes and blocks of boxes, and it manages to come out with a good placement of the boxes in the page.

    That's why you need to provide a bounding box for your pictures: it is the size of the box containing your figure.