Debian Codegraph @

texmf-dist/doc/latex/placeins/placeins-doc.tex

raw
1 \documentclass[pagesize=auto, fontsize=12pt, DIV=9, parskip=half]{scrartcl}
2
3 \usepackage{fixltx2e}
4 \usepackage{etex}
5 \usepackage{lmodern}
6 \usepackage[T1]{fontenc}
7 \usepackage{textcomp}
8 \usepackage{microtype}
9 \usepackage{hyperref}
10
11 \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
12 \newcommand*{\pkg}[1]{\textsf{#1}}
13 \newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
14 \makeatletter
15 \newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
16 \makeatother
17 \newcommand*{\opt}[1]{\texttt{#1}}
18
19 \addtokomafont{title}{\rmfamily}
20
21 \title{The \pkg{placeins} package\thanks{This manual corresponds to \pkg{placeins.sty}~ver~2.2, dated~April 18, 2005.}}
22 \author{Donald Arseneau\thanks{\mail{[email protected]}}}
23 \date{April 18, 2005}
24
25
26 \begin{document}
27
28 \maketitle
29
30 \begin{sloppypar}
31 \pkg{Placeins.sty} keeps floats `in their place', preventing them from floating
32 past a ``\cmd{\FloatBarrier}'' command into another section. To use it, declare
33 ``\verb+\usepackage{placeins}+'' and insert ``\cmd{\FloatBarrier}'' at places that floats
34 should not move past, perhaps at every ``\cmd{\section}''.
35 \end{sloppypar}
36
37
38 \minisec{Option: \opt{[section]}}
39
40 \begin{sloppypar}
41 A more convenient way to stop floats at section boundaries is to change
42 the definition of ``\cmd{\section}'' to include ``\cmd{\FloatBarrier}'', either at the
43 beginning, before ``\cmd{\@startsection}'', or in the `style' specification (see
44 The \LaTeX\ Companion, section~2.2.2; or~2.3 in the 1st ed). If you specify
45 ``\verb+\usepackage[section]{placeins}+'', then the ``\cmd{\section}'' command will be
46 redefined with ``\cmd{\FloatBarrier}'' inserted at the beginning.
47 \end{sloppypar}
48
49
50 \minisec{Options: \opt{[above]} \opt{[below]}}
51
52 Something you may not like is that, by default, ``\cmd{\FloatBarrier}'' is very
53 strict, and will (try to) prevent a float from appearing above the start
54 of the current section or below the start of the next section, even
55 though the float is still on the same page as its intended section.
56 Each restriction can be relaxed separately by using the ``\opt{[above]}'' and
57 ``\opt{[below]}'' package options: ``\opt{[above]}'' allows floats to appear above their
58 section, if on the same page; ``\opt{[below]}'' allows below.
59
60 NOTE! The original version of \pkg{placeins.sty} acted like it was loaded
61 with the option ``\opt{[above]}'' specified.
62
63 There is a problem with \LaTeX's ``\cmd{\suppressfloats}'' being out of step with
64 the page breaking (see usenet msg \texttt{<[email protected]>} and thread)
65 which sometimes allows a float to go above a ``\cmd{\FloatBarrier}'' placed near
66 the top of a page. Maybe \pkg{placeins} will fix it sometime later.
67
68
69 \minisec{Option: \opt{[verbose]}}
70
71 There is a package option ``\opt{[verbose]}'' that causes many messages to be
72 written in the log file. It might be used to answer the question:
73 `How did \emph{that} get \emph{there}?!?'
74
75 \end{document}