Sujet : Re: Figure placement
De : engelbert_buxbaum (at) *nospam* hotmail.com (Dr Engelbert Buxbaum)
Groupes : comp.text.texDate : 20. Nov 2024, 23:01:15
Autres entêtes
Organisation : private
Message-ID : <MPG.41a87a9246326f339896a7@news.eternal-september.org>
References : 1 2 3
User-Agent : MicroPlanet-Gravity/3.0.4
In article <
vf03ck$3rf5q$1@dont-email.me>,
dieterhansbritz@gmail.com says...
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?
Simply leave out the figure environment (first and last line), and the
caption. The latter you'll have to replace by normal text.