I have a problem with space between subsection, text and image. I have code:

\documentclass[12pt, a4paper]{article}

\subsection{Some title}
Some text in section

\captionof{figure}{Diagram klas aplikacji serwera}
\captionof{figure}{Diagram klas aplikacji klienta}

\subsection{Some title 2}
Some text...

And my document looks like this: image

1 Answer 1


Write \raggedbottom into the preamble.

  • \raggedbottom is on by default in article, if twoside is not used.
    – egreg
    Commented Jun 10, 2014 at 18:32
  • \raggedbottom works! Thank you very much.
    – Artek
    Commented Jun 10, 2014 at 18:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .