[Insight-developers] Inserting graphics on LaTeX / Insight.sty
Luis Ibanez
ibanez@cs.unc.edu
Sat, 28 Jul 2001 22:09:43 -0400
In order to simplify the insertion of graphics in
latex files, the "graphics" package is included
by default in Insight.sty. So you don't have to
do it in your .tex files.
It has also been configured to accept not only
.eps (encapsulated postscript) files but also :
.gif, .jpg, .tiff and .bmp
Basically a macro calls "convert" (one of the
tools in ImageMagik set) that will convert the
image on-the-fly, without creating a file for it.
However, latex needs help determining the bounding
box of the image, so users have to provide a file
with a line containing this bounding box.
For that purpouse there is a simply shell file:
InsightDocuments/Latex/extractImageBoundingBox.sh
it will create for a file : myImage.gif
the corresponding (very small) file : myImage.gif.bb
containing only one line of text. The use is:
> extractImageBoundingBox.sh myImage.gif
In that way you can check in images in any format
that "convert" can convert to eps. (the list of
accepted formats is quite complete)
Additionaly in InsightDocuments/User/AlgorithmsGuide
the file RegistrationFrameworkChapter.tex have some
examples about how to make text flow around a graphic,
and how to rotate and scale graphics at the time of
insertion.
a search for the command \includgraphic will lead
to the interesting places. They all look like
\begin{figure}
\includegraphics{myImage.jpg}
\caption{This is a caption for the image}
\end{figure}
For making text flow around the image the
\begin{floatingfigure}
\end{floatingfigure}
environment is used.
Luis