## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Problem strange empty space between text and figure or text

Information and discussion about graphics, figures & tables in LaTeX documents.
ghaithalhaik
Posts: 1
Joined: Fri Sep 23, 2016 10:36 am

### Problem strange empty space between text and figure or text

Please, could someone helping me to find a solution for this problem Since I used \usepackage{float} with \begin{figure}[H] for position, I have this problem
Attachments
Sans titre1.png (59.38 KiB) Viewed 2378 times

Tags:

Stefan Kottwitz
Posts: 9104
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

\begin{figure}[H] is fundamentally bad. Don't use it. That causes bad page breaks and undesired white space because of the forced figure placement. Allow LaTeX to move the figures to optimal positions. The have reference numbers just because it's common in books that figures are somewhere near but not strictly here.

Perhaps use \begin{figure}[!htbp] instead, that's the most flexible placement near to the position in the code.

Stefan