Skip to main content
When a LaTeX figure or table lands pages away from its text, LaTeX could not fit it under the active float rules or placement specifier. Give the float flexible options ([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
Cause: If LaTeX cannot place a float with [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).
See LaTeX figure positioning for section barriers and exact figure placement, or Precise table placement for an [H] table example.

Too many unprocessed floats

main.log
Cause: LaTeX exhausted its available float boxes before placing earlier deferred floats. The modern LaTeX2e kernel allocates 52 float boxes by default (shared with other uses such as margin notes), so queuing dozens of pending figures or tables faster than pages can absorb them fills the pool and stops compilation — even when p is included if floats remain pending. Fixes:
  • Reduce consecutive floats or flush the queue periodically with \clearpage or \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
Cause: The figure or table, together with its caption, is taller than \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 longtable instead of wrapping them in a single table float (longtable errors in two-column mode; see advanced tables).

Not in outer par mode

main.log
Cause: You placed a figure or table environment inside a box that cannot contain floats, such as a minipage, \parbox, or table cell.
float-in-minipage.tex
Fix: Move the float out of the box, or drop the float environment and caption it with \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 with placeins, 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.