# [Tugindia] placing figures in correct places in report class

Sat Sep 13 11:07:30 CEST 2003

>>>>> "Bhaskaracharya" == Bhaskaracharya Pratishthana

Herbert> should be always \usepackage{graphicx} should be

Herbert> \begin{figure}[!htb]
Herbert> \centering
Herbert> \includegraphics{myfile.eps}
Herbert> \caption{}
Herbert> \label{}
Herbert> \end{figure}

Bhaskaracharya> Thanks!  But all figures went to end of the
Bhaskaracharya> chapter after implimenting above code.

Bhaskaracharya> Is there any other way?

Despite all the experiments done till now, if the figures still go to
the last page, your float parameters are to be blamed. The following
are some of the parameters with default values for report.cls that

\setcounter{bottomnumber}{1}
\renewcommand\bottomfraction{.3}
\setcounter{totalnumber}{3}
\renewcommand\textfraction{.2}
\renewcommand\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\renewcommand\dbltopfraction{.7}
\renewcommand\dblfloatpagefraction{.5}

of which you need to provide higher values for \floatpagefraction for
single column, \dblfloatpagefraction for double column and lower
values for \textfraction.

It could be like:

\renewcommand\floatpagefraction{.95}
\renewcommand\textfraction{.05}

This makes LaTeX to keep the float and text in a single page even if
the float height is upto 95% of \textheight.  The default value of .5
will push a float to last page if the height exceeds 50% of textheight
and definitely all figures after this eratic figure will be flushed
to the end.

Hope this helps.