I have floats that take up a whole page but need to be positioned in proximity of the text discussing them. So I need to avoid Latex putting them at the end of the chapter. I've seen two solutions for this problem so far:
\afterpage{\clearpage}
will flush remaining floats on the next page\FloatBarrier
, strategically placed later in the text, will flush remaining floats before that text
Both solutions do not help me with one specific problem though. If the page-long figure is followed by another figure, one of these two problems happen:
- The other float gets lost
- The other float is also rendered on a dedicated full page
If the second figure is also page-long, the afterpage command can be put after the first, but before the second figure to avoid a float getting lost. However, in my particular case the second figure is quite small. I have the effect of the figure taking up a whole page, then the rest of the paragraph starting on the following page.
How can I avoid this problem?