Graphics, Figures & TablesProblem strange empty space between text and figure or text

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

Problem strange empty space between text and figure or text

Post by ghaithalhaik »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Problem strange empty space between text and figure or text

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply