Sujet : Re: Figure placement
De : dieterhansbritz (at) *nospam* gmail.com (db)
Groupes : comp.text.texDate : 19. Oct 2024, 11:58:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vf03ck$3rf5q$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.
OK, here is the template I use for figures:
\begin{figure}[!pb]%
\begin{center}
\includegraphics*[width=0.8\textwidth]{figs/.eps}
\caption{}\label{Fig:}
\end{center}
\end{figure}
What do I have to do to not wrap them in a floating
environment?
-- db