Discussion:
Figure placement
Add Reply
db
2024-10-18 09:47:28 UTC
Reply
Permalink
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?
--
db
Dr Engelbert Buxbaum
2024-10-19 08:30:02 UTC
Reply
Permalink
In article <vetarg$38b6q$***@dont-email.me>, ***@gmail.com
says...
Post by db
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.
db
2024-10-19 10:58:29 UTC
Reply
Permalink
Post by Dr Engelbert Buxbaum
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
db
2024-10-19 11:13:04 UTC
Reply
Permalink
Post by Dr Engelbert Buxbaum
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
Loading...