Discussion:
placeins in subsection
(too old to reply)
a2003zz
2006-09-05 03:35:12 UTC
Permalink
\usepackage[section]{placeins}

works great in all sections in my documents. I get all the tables
and figures in the section I want.

But I have problems within the subsection. Many times, the figures
and tables crosses the subsection.

Can some one help me to solve this problem.

Thanks in advance.
Ashok
Jean-Côme Charpentier
2006-09-05 04:05:09 UTC
Permalink
Post by a2003zz
\usepackage[section]{placeins}
works great in all sections in my documents. I get all the tables
and figures in the section I want.
But I have problems within the subsection. Many times, the figures
and tables crosses the subsection.
Can some one help me to solve this problem.
If you want that subsections acts like sections about floats, you can
write the same as the option [section] writes, that is,

\makeatletter
\let\subsectionori\subsection
\renewcommand\subsection{\@***@secFB\subsectionori}
\makeatother

If you want fix a local problem:

\FloatBarrier
\subsection{...}

I suppose you know that it could be a big blank vertical space before
subsection.

Jean-Côme Charpentier

Loading...