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.
March 7, 2008 at 4:30 pm |
June 6, 2008 at 12:12 pm |
[...] 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. [...]