7

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

\documentclass[12pt, a4paper]{article}
\usepackage[demo]{graphicx}
\usepackage{caption}

\begin{document}
\subsection{Some title}
Some text in section

\begin{center}
\includegraphics[scale=0.8]{image1.jpg}
\captionof{figure}{Diagram klas aplikacji serwera}
\end{center}
\begin{center}
\includegraphics[scale=0.75]{image2.jpg}
\captionof{figure}{Diagram klas aplikacji klienta}
\end{center}

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

And my document looks like this: image

1 Answer 1

13

Write \raggedbottom into the preamble.

2
  • \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 .