Graphics, Figures & TablesKeep Figure in Section

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Keep Figure in Section

Post by 21did21 »

Hello world,

in my text i have several "floating figure" i like this method but i don't know how i can impose to this figures to stay in the current section ... ?

of course, \clearpage works but i don't want to skip a page: i just want to keep all the images in its section without clearpage.

can you help me please ?

ps: sorry for my english...
Last edited by 21did21 on Wed Sep 28, 2011 2:40 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Keep Figure in Section

Post by Stefan Kottwitz »

Hi,

you could use the placeins package:

Code: Select all

\usepackage[section]{placeins}
This prevents figures from floating across section boundaries. Furthermore, you can use its command \FlotBarrier for limiting the floating on further places.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Keep Figure in Section

Post by localghost »

Before you apply the sledgehammer method with any package, you should start with some placement parameters for your floats.

Code: Select all

\begin{figure}[!ht]
% figure content
\end{figure}

Thorsten
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Re: Keep Figure in Section

Post by 21did21 »

thank for your help,

i will try this things

see you later ;-)
Post Reply