[Tugindia] placing figures in correct places in report class

Kapil Hari Paranjape kapil at imsc.res.in
Sun Sep 14 09:30:07 CEST 2003


Fellow listers please correct me if I am wrong here (very likely!).

Manjusha wrote:
> I want to place figures in report class file at right place.
> \begin{figure}[h]
> \begin{center}
> \includegraphics{myfile.eps}
> \caption{}
> \label{}
> \end{center}
> \end{figure}

This is truly a frequently asked question, so I am puzzled that I have
nott seen the following possible answer.

When you use the "figure" environment, you are commanding TeX to make
the box created by this into a float. The "[h]" option is a *suggestion*
that this figure be put at this point if possible. 

Clearly a command is more imperative than a suggestion!

So if you really want to put a figure at *exactly* the place you are in the
document, then the command should be

\vskip{<space between figure and caption>}
<caption text>

(In other words do *not* use the figure environment).

Of course, this may make your pages under/overfull (Vertically) but at least
you got TeX to put your figure exactly where you want them to be!




More information about the tugindia mailing list