図のようなフロート環境はドキュメント内に空白を残します

図のようなフロート環境はドキュメント内に空白を残します

フロートにより、画像はドキュメントの最後に配置されますが、私にとってはまったく問題ありません。しかし、テキスト ブロック内に空白が残ります。これを解消するにはどうすればよいでしょうか? 助けてください。以下のコードの出力は次のようになります。

[Some text].


[Some more text] 


[Some text].
\begin{center}
\begin{figure}
    \centering
    \includegraphics[width=1.0\textwidth]{secondaryif.png}
    \caption[details of the image. Image source: \href{url}{http://wikipedia.org/wiki/index.php/Image:myimage.png}}
    \label{fig:secondaryif}
\end{figure}
\end{center}
[Some more text]

関連情報