TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my document, I have figures that have a rather long caption. The code I use to include them looks like this:

    \caption[Short caption]{Fairly long text...}

For some of the figures, I keep getting warnings like this one:

LaTeX Warning: Float too large for page by 2.38557pt on input line 339.

I can't see anything wrong with the figures in the output document, but it makes the compilation output harder to read because it is full of such warnings.

What am I doing wrong, and how can I get rid of these warnings?

share|improve this question
up vote 18 down vote accepted

The warnings tell you that the float (figure and caption) are too long for staying in a page. You will get rid of many of those warnings if you avoid the center environment:

  \caption[Short caption]{Fairly long text...}

(it should be avoided anyway, see Should I use center or centering for figures?).

For pretty high figures you might also want to shorten their width, say 0.95\textwidth or less. LaTeX won't apply such a transformation for you: the warning simply tells that a float needs attention, but how to solve the problem depends on factors that only a human can evaluate properly.

share|improve this answer
Thanks for your answer. Why is it better to use centering instead of the center environment in caption? – Antoine Nov 26 '11 at 16:28
@Antoine: See tex.stackexchange.com/questions/2651/… – lockstep Nov 26 '11 at 16:29
@lockstep Thanks. This link has its place in this answer. – Antoine Nov 26 '11 at 16:34

If the overfullness is not actually a problem: it worked for me to add \vspace{-Xpt} before the \end{figure}.

In my case the complaint was about an utterly inconsequential 0.04999pt and so I did not want to split the figure or do anything else to the input, just get the useless-in-this-case warning to go away.

share|improve this answer
This is a short answer to an old question. And what would the real Karl Berry say about this username? ;-) – Christian Hupfer Sep 27 '14 at 16:54
christian, i am baffled by every aspect of your comment. 1) i am the "real" Karl Berry. 2) why does it matter how old the question is? it is still relevant. it still came up. 3) why does it matter how long the answer is? it said everything i had to say, and nothing more. – Karl Berry Oct 11 '14 at 23:30
Karl, I am baffled, that the famous Karl Berry is a) a new member on TeX.SX and does not have more than 1 reputation credit. Sorry about my the comment on the 'short' answer. – Christian Hupfer Oct 12 '14 at 6:30

I got this error for a table that was too high to fit in a page. I fixed it by adjusting column width and splitting the table in half.

share|improve this answer
This is a comment rather than answer; particularly as the amount of overspill is so small (under 3pt). – Andrew Swann Oct 9 '15 at 8:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.