next up previous contents
Next: EPS Up: LATEX Tips and techniques. Previous: Showkeys   Contents

Figures

The figure environment can be used to display anything and also produce a caption and special labeling. A typical figure environment looks like this:
As you can see, the magnon dispersion relation in the large 
$n$ limit looks a lot like a camel. 
(See Figure~\ref{fig:example1}).
\begin{figure}[h]
  \centering
  \includegraphics[width=0.5\textwidth]{example1.eps}
  \caption{This is the caption of a figure}
  \label{fig:example1}
\end{figure}

This code produces the following output (Note that the figure may be placed on a different page if it does not fit very well.):

As you can see, the magnon dispersion relation in the large $n$ limit looks a lot like a camel. (See Figure [*]).

Figure: This is the caption of a figure

Note that one may be able to prevent figures from going too far by issuing the \clearpage command at the end of the page. However, determining where the page ends is difficult because LATEX does this. One solution is to use the command \afterpage{\clearpage} This will issue the \clearpage at the end of the current page.



Subsections

Michael McNeil Forbes 2006-05-26