Floats
Floating environments allow you to have Figures to be placed automatically in sensible places by LaTeX:- Standard: This floating environment causes the figure to use the whole width of the page:
- Document layout:
% ... \begin{document} % ... \begin{figure}[PLACEMENT] % ... \end{figure} % ... \end{document} - Placement:
h: heret: Topb: Bottomp: On page containing floats!: Force
\begin{figure}[t] \parbox[t]{7cm}{ \includegraphics[keepaspectratio=true,width=7cm]{figure1} \caption{figure 1} \label{fig.figure1} } \parbox[t]{7cm}{ \includegraphics[keepaspectratio=true,width=7cm]{figure2} \caption{figure 2} \label{fig.figure2} } \end{figure} - Document layout:
- Floating: This floating environment allows text to be printed next to the figure.
- Document layout:
% ... \usepackage[OPTIONS]{floatflt} % ... \begin{document} % ... \begin{floatingfigure}[PLACEMENT]{WIDTH} % ... \end{floatingfigure} % ... \end{document} - Options:
rflt: Placed right in paragraphlflt: Placed left in paragraphvflt: Placed left on even-numbered pages and right on odd-numbered
- Placement:
r: See abovel: See abovep: See abovev: See the vflt package option
NOTE: Using this package, floating figures need to placed with care: They may disappear if placed too close to sectioning commands. They may overlap with list environments.
- Document layout:
- Referring to figures is referring to captions: See Caption
- Stopping a floating environment to be moved to the end of the document
% places all floats and starts a new page \clearpage % places all floats and starts a new double page \cleardoublepage



