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
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\includegraphics{huge-image.png} % No size constraint
\end{figure}
\end{document}\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
Overfull \hbox (Line Too Wide)
Overfull \hbox (Xpt too wide) in paragraph at lines N--M.
No Line Here to End (Misplaced \\)
! LaTeX Error: There's no line here to end.
Underfull \hbox (Poor Word Spacing)
Underfull \hbox (badness 10000) in paragraph at lines N--M.
Float Used in Non-Outer-Par Mode
! LaTeX Error: Not in outer par mode.
Test the fix live
Paste your LaTeX into the playground and compile instantly.

