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

I have to embed a huge figure in a page where at the bottom there should be some text. However, the figure simply occupy a new page -- how to prevent this?

share|improve this question
You may find that [!t]is enough to allow it to be a top float even if it breaks the constraints. Unless you mean by huge that it is actually bigger than the text area. – David Carlisle Jul 12 '12 at 19:21
Thanks all. I found [!t] work very well! – flyingbin Jul 12 '12 at 19:27
Related: The excellent overview of floats by Frank Mittelbach. – Jake Jul 12 '12 at 19:33
up vote 11 down vote accepted

This is one of the possibilities suggested as use by the afterpage package:

enter image description here

%\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage{afterpage}% http://ctan.org/pkg/afterpage
\usepackage{float}% http://ctan.org/pkg/float
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
    \rule{.8\textwidth}{.8\textheight}% Your image
    \caption{This is a HuGe figure.}

The use of the H float specifier (supported by the float package) is crucial here and suppresses the floating. Of course, using \captionof (from the capt-of package) is also a possibility.

The default for very large floats is to sit on a page of its own, the above circumvents that. The default is controlled by macros like \topfraction and \bottomfraction. See the layouts package documentation for more on this.

share|improve this answer

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.