Graphics, Figures & Tableskeep multiple float figures together

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ther
Posts: 19
Joined: Wed Mar 17, 2010 10:40 pm

keep multiple float figures together

Post by ther »

Does anyone know the answer to this question?
latex@conference.jabber.org
pdftex 31415921403
jedit text editor

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

keep multiple float figures together

Post by gmedina »

Hi,

try the \FloatBarrier command from the placeins package.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

keep multiple float figures together

Post by localghost »

HTML tags don't work in the forum, but BBCode does. So, don't disable BBCode. It's necessary to format posts, e. g. for inserting links. General settings can be done in the UCP.

It's not clear to me whether these figures have a common caption or each of them has its own. For the latter case gmedina proposed a solution. In the other case use a package like floatrow, hvfloat or »subcaption« (shipped with the caption package).


Thorsten
ther
Posts: 19
Joined: Wed Mar 17, 2010 10:40 pm

Re: keep multiple float figures together

Post by ther »

The placeins package seems appropriate for me because each figure contains an image of the same size and a separate caption text of equivalent length.

This package prevents the images from placement into subsequent sections, but I still have a problem with irregular placement of the images. Even though the images are the same size, some pages show a column of two images per page (which is what I want), or only one image per page (what I do not want).

Is there a way to force two images per page?
latex@conference.jabber.org
pdftex 31415921403
jedit text editor
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

keep multiple float figures together

Post by localghost »

Since you haven't provided a minimal example yet, I assume that you are only interested in some hints instead of a specific solution. So I can only advice to force every figure environment being put on a float page with [!p] as placement parameters. If necessary, put a \clearpage or \cleardoublepage command after every second figure to force the output.
Post Reply