General ⇒ White space above figures
White space above figures
Is there some way to fix this? I am using the \centering command, which I assumed only centers horizontally, but maybe in this case it is centering vertically as well? The figure looks like it is either centered vertically also or maybe aligned bottom even though I gave the option t before b for alignment ( I would prefer top in this case).
Is there some way I can control the white space above the figure?
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
Re: White space above figures
\begin{figure}[!ht]
...
\end{figure}
\centering centers on the line only.
B.A.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
White space above figures
A minimal working example (MWE) would do a better job than this fuzzy description. It would let us see better what's going wrong and we may do some corrections to the provided code.dmt wrote:[…] I am using the \centering command, which I assumed only centers horizontally, but maybe in this case it is centering vertically as well? The figure looks like it is either centered vertically also or maybe aligned bottom even though I gave the option t before b for alignment ( I would prefer top in this case).
[…]
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
White space above figures
Code: Select all
\begin{figure}[ht]
\centering
\includegraphics[trim=1cm 1.5cm 3cm 1.3cm, clip=true]{newclock}
\caption{Klockan från problem \ref{clock}}
\includegraphics{newclock12-1}
\caption{Första 3 trianglar från problem \ref{clock}}
\end{figure}
- Stefan Kottwitz
- Site Admin
- Posts: 10361
- Joined: Mon Mar 10, 2008 9:44 pm
White space above figures
this may help: Vertical layout of float pages from the UK TeX FAQ.
Your code snipped ist not a complete minimal working example, because ist is not working. Just look at Thorsten's link above for a description of mwe. Even if my hint is working, for the next time.

Stefan