Graphics, Figures & Tables ⇒ Float placement
Float placement
I am writing up my MSc thesis and I have many pictures to add to my document. I am using float package and put picture in the document by:
\begin{figure}[H]
...
\end{figure}
The problem is when I have two pictures in a row which can not fit in one page, LaTeX moves the second one to the next page, which is OK, but it moves the first one to the bottom of the current page and make lots of white space between the text and the figure. I know I can use \clearpage but it would be too impractical as I may add or remove texts and every thing would be mixed up again.
Does anybody know how I can FORCE LaTeX to place the picture in the page without that white space?
Thanks
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
Float placement
Code: Select all
\begin{figure}[h!]
...
\end{figure}
Follow howtoTeX on twitter
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Float placement
With this specification for the figure environment it does not longer what it is supposed to do, that is to say float. And if there is not enough space for placing the next (non-floating) figure on the page, the remaining space will be left blank. So live with the result or let it float again by giving appropriate placement parameters.rad1982 wrote:[…] I am using float package and put picture in the document by:
\begin{figure}[H]
...
\end{figure}
The problem is when I have two pictures in a row which can not fit in one page, LaTeX moves the second one to the next page, which is OK, but it moves the first one to the bottom of the current page and make lots of white space between the text and the figure. I know I can use \clearpage but it would be too impractical as I may add or remove texts and every thing would be mixed up again. […]
Code: Select all
\begin{figure}[!ht]
% figure content
\end{figure}
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10