Hi all,
I inserted a figure after a paragraph. But the problem is that the figure is displayed at the beginning of the page while the paragraph in the middle of the page. Thus, the figure does not follow the relevant paragraph. How to insert the figure immediately after the relevant paragraph?
Graphics, Figures & Tables ⇒ Positions figures
-
- Posts: 36
- Joined: Sun May 20, 2012 6:28 am
Positions figures
Last edited by cgnieder on Sun Jun 23, 2013 3:59 pm, edited 1 time in total.
Reason: removed unnecessary bold typesetting of post
Reason: removed unnecessary bold typesetting of post
NEW: TikZ book now 40% off at Amazon.com for a short time.
Positions figures
My wild guess would be that you allowed the float to be placed in the
or implicitly by using the default
If that is correct then try something like
If it isn't correct or this doesn't help you please post a
minimal working example.
Regards
top
area of the page, either explicitly by adding the `t` parameter to the float placement option, e.g.Code: Select all
\begin{figure}[ht]
...
\end{figure}
Code: Select all
\begin{figure}
...
\end{figure}
Code: Select all
\begin{figure}[hbp]
...
\end{figure}

Regards
site moderator & package author
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Positions figures
You should inform yourselve, why LaTeX does that to your figures.
Also, please have a look at How to influence the position of float environments like figure and table in LaTeX?
Also, please have a look at How to influence the position of float environments like figure and table in LaTeX?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
-
- Posts: 36
- Joined: Sun May 20, 2012 6:28 am
Positions figures
I used this solution:

and it's OKPlaceins.sty keeps floats ‘in their place’, preventing them from floating past
a “\FloatBarrier” command into another section. To use it, declare
“\usepackage{placeins}” and insert “\FloatBarrier” at places that floats
should not move past
