I don't use the package myself, but when I read the UK TeX FAQ pages
about [ floating environments and stuff ], I thought that the package
was useful. The following paragraph is from the first page of the
documentation:
Sometimes LATEX’s float positioning mechanism gets overloaded, and
all
floating figures and tables drift to the end of the document. One
may
flush out all the unprocessed floats by issuing a \clearpage
command, but
this has the effect of making the current page end prematurely. Now
you
can issue \afterpage{\clearpage} and the current page will be filled
up
with text as usual, but then a \clearpage command will flush out all
the
floats before the next text page begins.
So, by putting an \afterpage{\clearpage} command at a suitable
position
before the appendices you can flush the pending floats gracefully, as
opposed to using [H] or [h], which I never encourage. This may not be
an
ideal solution but there are cases where this may help.
For example, the following effectively forces the figure to a
reasonable
position before the end of the next page:
\documentclass{article}
\usepackage{afterpage}
\usepackage{lipsum}
\newcommand\lipsumfigure[2][tbph]{%
\begin{figure}[#1]
\rule{\textwidth}{1pt}
\lipsum[#2]
\caption{Yet another figure.}
\rule{\textwidth}{1pt}
\end{figure}
}
\begin{document}
\lipsum[1]
%\lipsumfigure[tbph]{3-4}
%\clearpage
\lipsumfigure[tbph]{3-4}
\afterpage{\clearpage}
\lipsum[5-9]
\end{document}
If you comment out the two lines after the comments and uncomment
the first two commented lines then the result is much less
satisfactory. (And yes, I know that there's no need for the
[tbph] but I always put them in for clarity.:-)
Regards,
Marc van Dongen