[htbp]), keep it inside its section with \FloatBarrier from the placeins package, or pin one specific figure or table in place with [H] from the float package.
For a full reference to placement specifiers and float fractions, see LaTeX figure positioning. This page focuses on diagnosing why floats drift, pile up, or trigger compiler errors.
Figure or table lands on the wrong page (or piles up at the end)
main.log
[h] where it appears in the source, it changes [h] to [ht] when it defers the float. Because LaTeX keeps figures in strict order (and tables in strict order), one deferred float holds back later floats of the same type until it can be placed on an eligible later page — or until a \clearpage, chapter break, or the end of the document.
Fixes:
- Allow flexible placement: Use
[htbp](or[!htbp]) instead of[h]alone so deferred floats can place earlier or move to a float page (p).
[H] table example.
Too many unprocessed floats
main.log
p is included if floats remain pending.
Fixes:
- Reduce consecutive floats or flush the queue periodically with
\clearpageor\FloatBarrier. - Relax overly restrictive specifiers (such as
[h]alone) so pending floats can place sooner. - For documents with genuine high float demand, call
\extrafloats{100}in the preamble (see LaTeX figure positioning for full float-queue tuning).
Float too large for page
main.log
\textheight. It overflows the bottom margin and can stall later floats.
Fixes:
- Cap graphic height so the image plus its caption fits within
\textheight— for example\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{chart.pdf}, reducing the factor further if the caption is long. - In one-column documents, split tall tables across pages with
longtableinstead of wrapping them in a singletablefloat (longtableerrors in two-column mode; see advanced tables).
Not in outer par mode
main.log
figure or table environment inside a box that cannot contain floats, such as a minipage, \parbox, or table cell.
float-in-minipage.tex
\captionof from caption. For the full minipage/\captionof recipe and the related Float(s) lost warning, see LaTeX warnings explained.
In LaTeX Cloud Studio
LaTeX Cloud Studio uses TeX Live 2026 withplaceins, float, caption, and longtable preinstalled, and the Problems view in the right sidebar can show LaTeX, package, and class warnings from a full compile.
Working on a figure- and table-heavy document? Start from the Lab Report template in LaTeX Cloud Studio to test float barriers and table layouts in a ready-to-compile project.
Related pages
- LaTeX figure positioning: complete guide to
[h],[t],[b],[p],[H], and float parameters - Advanced tables: multi-page
longtableand wide tables - LaTeX warnings explained:
Float(s) lostand box warnings - Image and path errors
