Document 648

The LaTeX placeins package

Version: 5.5 - Scientific WorkPlace & Scientific Word

The placeins package prevents floating graphics or tables from floating into the next section of the document or past a designated point in the document. The point is signaled by a \FloatBarrier command. The package successfully controls the placement of floating objects in DVI files, in PDF files, and in files created with the Portable LaTeX output filter. Thus, it has wider use than the float package.

Here's how to prevent floating objects from appearing in the next section.

  1. Add the placeins package to your document.

  2. From the Typeset menu, choose Options and Packages and then choose the Package Options tab.

  3. From the Packages in Use list, select the placeins package and choose Modify.

  4. In the Category list, select Barrier at section and, in the Options list, select Yes.

  5. Choose OK to close each dialog box and return to your document.

Here's how to prevent a floating object from appearing after a designated point:

  1. Add the placeins package to your document.

  2. Place the insertion point where you want accumulated floating objects to appear.

  3. Enter an encapsulated TeX field.

  4. In the entry area, type \FloatBarrier and choose OK.

By default, the \FloatBarrier command is very strict. It prevents a floating object from appearing above the start of the current section or below the start of the next section, even though the floating object would appear on the same page as its intended section. Each restriction can be relaxed separately by using the above and below package options. The package is installed in the TCITeX/TeX/LaTeX/contrib/placeins directory.

For more information, open the package documentation with your default viewer for text files.

Last revised 02/13/06