I'm writing my thesis and I'd like the text to have some spacing between paragraphs. So I used
\usepackage{parskip}
The problem now is that, for some reason, it removes spacing in some parts of the text, where instead there should be some. For example, before a new Theorem or Proposition, as you can see in this example:
\documentclass[12pt, a4paper]{book}
\usepackage{parskip} % paragraph spacing: without this command there is spacing between the paragraph and the proposition
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}{Proposition}[section]
\begin{document}
\chapter{Introduction}
This is some text
This is other text in another paragraph
\begin{proposition}
This is the proposition
\end{proposition}
\end{document}
How can I prevent this?
EDIT: The parskip package also adds random space for no apparent reason in some parts of the text, see caption, even if the code does not imply those space to be there :
\section{Simulation and sensitivity analysis}
Some text some text Some text some text Some text some text Some text some
text Some text some text
Some text some text Some text some text Some text some text Some text some
text Some text some text
Some text some text Some text some text Some text some text Some text some
text Some text some text
Some text some text Some text some text Some text some text Some text some
text Some text some text
Some text some text Some text some text Some text some text Some text some
text Some text some text
Some text some text Some text some text Some text some text Some text some
text Some text some text

\begin{figure}[H]? – egreg Sep 06 '18 at 10:46[H]and use[!htp]. – egreg Sep 06 '18 at 11:13