## Wednesday, 27 May 2009

### The Float LaTeX Package for Placing the Figure Here

If you don’t care where the figures are placed as long as they are in the same chapter, you need not worry and will get the best layout possible from TeX. But, if there is a major figure or a table which you want to appear before the discussion or a section, you are in for trouble. There is an option [h] which means ‘You may put it here if you like.’ No, Tex is not going to like whatever you like and often floats it somewhere else.

Hence a package called here was written by David Carlisle which gave an option [H] which means “put it HERE, period”. That package is now replaced by Anselm Lingnau’s float package which provides some more facilities also. This package is included by default in both MikTeX as well as TeXlive and you may include it in file by standard

\usepackage{float}
and use the HERE option as
\begin{figure}[H]
(or)
\begin{table}[H]
Note that the [H] option cannot be used in conjunction with other options as you can do with [h] option like [htb]. That doesn’t make sense, anyway.

1. dei write about something that people like me can understand :P :)