Flush figure before end of page

By thurnherr

Usually figures are placed wherever there is enough space, e.g. for “begin{figure}[ht]” at the beginning of the next page. What if you want to place the figure within the text, because you have other figures which you do not want to place only at the beginning of the second next page…

There is a little trick, which lets Latex place figures before the end of a section by using an exclamation mark (\begin{figure}[h!t]), as long as there is enough space on that page.
The exclamation mark let’s you place figures more precisely in the text and is more often useful than not. It can be used to the same extend for tables.

Tags: , , , , ,

2 Responses to “Flush figure before end of page”

  1. caela Says:

    :) thank you that just helped me!

  2. Pandammonium: blogs [pandammonia] Says:

    [...] This is exactly what I wanted to find yesterday. Why didn’t Google find it for me then? I happened across it when looking at this post on side-by-side tables. [...]

Leave a Reply