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 19374 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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