Sujet : Re: Figure placement
De : dieterhansbritz (at) *nospam* gmail.com (db)
Groupes : comp.text.texDate : 19. Oct 2024, 12:13:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vf0480$3rno2$1@dont-email.me>
References : 1 2
User-Agent : Pan/0.149 (Bellevue; 4c157ba)
On Sat, 19 Oct 2024 10:30:02 +0200, Dr Engelbert Buxbaum wrote:
In article <vetarg$38b6q$1@dont-email.me>, dieterhansbritz@gmail.com
says...
I am frustrated by figure placement. I have a figure near the top of an
article that, if I write \begin{figure}[!h], it gets put in the middle
of a sentence, but if I write \begin{figure}[!t] it naturally goes
above the title.
Is it possible to force a figure to go where I want it?
"Forcing" of floats is generally a bad idea, if you want a figure or
table at a specific place, use the tabular or includegraphics commands
without wrapping them into a floating environment.
I do use the placeins package to place \FloatBarriers between sections,
this ensures that floats are placed near where they are referred to. The
rest I leave to LaTeX.
I found out how to do it. Use the package float and position H, not h.
-- db