.eps
) files by translating
them to PDF. In this way, dvipdfm combines the good
qualities of dvips and of PDFTeX as a means of
processing illustrated documents.
Unfortunately, “ordinary” LaTeX can’t deduce the bounding box of
a binary bitmap file (such as JPEG or PNG), so you have
to specify the bounding box. This may be done explicitly, in the
document:
\usepackage[dvipdfm]{graphicx} ... \includegraphics[bb=0 0 540 405]{photo.jpg}
It’s usually not obvious what values to give the “bb
” key,
but the program ebb will generate a file
containing the information; the above numbers came from an
ebb output file photo.bb:
%%Title: /home/gsm10/photo.jpg %%Creator: ebb Version 0.5.2 %%BoundingBox: 0 0 540 405 %%CreationDate: Mon Mar 8 15:17:47 2004
However, if such a file is available, you may abbreviate the inclusion code, above, to read:
\usepackage[dvipdfm]{graphicx} ... \includegraphics{photo}
which makes the operation feel as simple as does including
.eps
images in a LaTeX file for processing with
dvips; the graphicx package knows to look for a
.bb
file if no bounding box is provided in the
\
includegraphics
command.
dvips
option if you’re using TeX.
This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=dvipdfmgraphics