5

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

10

Write \raggedbottom into the preamble.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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