Graphics, Figures & TablesPositions figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
nounouuuuu201186
Posts: 36
Joined: Sun May 20, 2012 6:28 am

Positions figures

Post by nounouuuuu201186 »

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?
Last edited by cgnieder on Sun Jun 23, 2013 3:59 pm, edited 1 time in total.
Reason: removed unnecessary bold typesetting of post

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Positions figures

Post by cgnieder »

My wild guess would be that you allowed the float to be placed in the 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}
or implicitly by using the default

Code: Select all

\begin{figure}
...
\end{figure}
If that is correct then try something like

Code: Select all

\begin{figure}[hbp]
...
\end{figure}
If it isn't correct or this doesn't help you please post a Infominimal working example.

Regards
site moderator & package author
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Positions figures

Post by Johannes_B »

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?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
nounouuuuu201186
Posts: 36
Joined: Sun May 20, 2012 6:28 am

Positions figures

Post by nounouuuuu201186 »

I used this solution:
Placeins.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
and it's OK :)
Post Reply