I have a problem with linespacing after I put a figure in my document. The figure code is put just after some equation code. Although the figure is drawn in the top of the page it seems that it adds some extra linespace after the equation. How can I fix it?
The problem is not present when I remove the equation.
The problem can be reproduced with the code below:
\documentclass{mwrep}
\begin{document}
% extra linespacing
some text some text some text some text
\begin{equation}some equation\end{equation}
\begin{figure}some figure\end{figure} % adds extra linespace though drawn in another place
some text some text some text some text
% regular linespacing
some text some text some text some text
\begin{equation}some equation\end{equation}
some text some text some text some text
\end{document}
figure
andequation
....