Monday, November 19, 2012

Place figures and tables correctly in Latex

One way to force Latex to place your figures and tables where you want is by using the "float" package. You need to specify an "H" directive whenever you add a table or figure. The package usage is as follows:

\usepackage{float}

\begin{figure}{H}
.. Attributes
\end{figure}


The same scenario applies for tables. The float package allows not only placing tables and figures in the desired location but also is text friendly in the sense that it plays nice when you have text in between figures/tables.