\
raisebox
commands...)
Most imported graphics have their base-line set at the bottom of the
picture. When using packages such as subfig, one often
wants to align figures by their tops. The following odd little bit of
code does this:
\vtop{% \vskip0pt \hbox{% \includegraphics{figure}% }% }
The \
vtop
primitive sets the base-line of the resulting object to
that of the first “line” in it; the \
vskip
creates the illusion
of an empty line, so \
vtop
makes the very top of the box into the
base-line.
\vtop{% \vskip-1ex \hbox{% \includegraphics{figure}% }% }
A more LaTeX-y way of doing the job (somewhat inefficiently) uses the calc package:
\usepackage{calc} ... \raisebox{1ex-\height}{\includegraphics{figure}}
(this has the same effect as the text-align version, above).
The fact is, you may choose where the base-line ends up. This answer merely shows you sensible choices you might make.This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=topgraph