Graphics, Figures & Tables ⇒ Spacing between figure and text
Spacing between figure and text
Regards
- Attachments
-
- Image.png (90.05 KiB) Viewed 5107 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Spacing between figure and text
[h] means "allow the figure here". It alone doesn't allow the figure to float to the top of a page [t], the bottom of a page , a float page on its own [p], for better placement and page breaks.
I would use
[htbp!]
for most flexible placement.Furthermore, such a gap can occur if your document does text balancing on pages to have the text always end at the bottom of the page, so, aligned at the bottom.
Try the command
\raggedbottom
in the document preamble to see if it's what you want.Stefan