0

I'm using a custom class which bases on the a4paper documentclass. When I add a table or a figure which doesn't have enough place on the current page, it is moved to the next one. This is fine for me.

However, if there is no more text after this figure, latex tries to fill in the gap and creates many smaller ones:

I want it to be just one gap at the end of the page.

Here is what I have now: bad

And here is what I'd like to have: good

How can I remove the extra spacing?

Note: I don't want to reduce the spacing around a float - I don't care how big it is-I want to minimize the impact of the rest of the text.

7
  • 4
    Welcome to TeX.SE. Have you tried providing the instruction \raggedbottom?
    – Mico
    Commented May 6, 2016 at 15:53
  • 1
    The opposite of \raggedbottom is \flushbottom. The commands do not work automatically on all pages of the document, unless they're placed in the preamble. If you want to have them take effect somewhere mid-document, just them where you want them to apply.
    – Mico
    Commented May 6, 2016 at 17:09
  • 2
    Just don't use the [H] position specifier for \begin{figure}.
    – egreg
    Commented May 6, 2016 at 17:26
  • 3
    [H] means "leave ugly white spaces in the document", and it does what is asked. Commented May 6, 2016 at 19:43
  • 1
    You could also add \vfill before \begin{figure}[H] to do a single page \raggedbottom (effectively). Commented May 7, 2016 at 3:26

0

You must log in to answer this question.

Browse other questions tagged .