LaTeX warning "Float too large for page by 99.90506pt": cause and fix

Warning Float too large for page by 99.90506pt

A figure or table is taller than the text area of a page. The number is the excess in points (72.27 pt are one inch, 28.45 pt one centimetre). LaTeX places the float on a page of its own anyway, and the excess runs into the bottom margin.

Why it happens

How to fix it

A document that produces the message

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[height=22cm]{image}
\caption{A tall figure}
\end{figure}
\end{document}

The corrected document

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{image}
\caption{A tall figure}
\end{figure}
\end{document}

Both documents were compiled with pdfLaTeX from TeX Live 2023. The first produces the message, the second compiles without an error.

Finding the line in the editor

The editor lists every error and warning of a compile run with file and line. Select an entry and the cursor jumps to that line. See Error list with jump to the line.

Related pages