LaTeX forum ⇒ Graphics, Figures & TablesProblem 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

Postby ghaithalhaik » Fri Sep 23, 2016 10:44 am

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
added inline code markup
Sans titre1.png (59.38 KiB) Viewed 2853 times

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 9196
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Sep 23, 2016 1:38 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
Site admin


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 9 guests