FormaTeX
FatalTypography & Layout

Float Too Large for Page

! LaTeX Error: Float too large for page by Xpt.

What this error means

A figure or table is taller than the page's float area, so LaTeX cannot place it anywhere. This usually happens with very large images or tables placed inside a float environment.

Common causes

  • An image included at full natural size that is taller than the page
  • A long table placed in a table float environment
  • Multiple stacked images inside a single figure

How to fix it

Scale the image down: \includegraphics[width=\textwidth]{img}. For very tall content, use a full-page figure with \begin{figure}[p]. For long tables, use the longtable package instead of table.

Code examples

Causes the error
\documentclass{article}
\usepackage{graphicx}
\begin{document}

\begin{figure}[h]
  \includegraphics{huge-image.png}  % No size constraint
\end{figure}

\end{document}
Fixed
\documentclass{article}
\usepackage{graphicx}
\begin{document}

\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.9\textwidth]{huge-image.png}
  \caption{Scaled to fit.}
\end{figure}

\end{document}

Related errors

Test the fix live

Paste your LaTeX into the playground and compile instantly.

Une chose rapide

Nous suivons l'utilisation anonyme — pages vues, utilisation des fonctionnalités, événements de compilation — pour comprendre ce qui fonctionne et ce qui ne fonctionne pas. Pas de publicité, pas de données personnelles, pas de partage avec des tiers.

Politique de cookies