summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-2colfltorder.html
blob: d396d5ff00c5188e54de3fea43b186869d7c63f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<head>
<title>UK TeX FAQ -- question label 2colfltorder</title>
</head><body>
<h3>Two-column float numbers out of order</h3>
<p/>When LaTeX can&#8217;t place a float immediately, it places it on one of
several &#8220;defer&#8221; lists.  If another float of the same type comes
along, and the &#8220;defer&#8221; list for that type still has something in it,
the later float has to wait for everything earlier in the list.
<p/>Now, standard LaTeX has different lists for single-column floats,
and double-column floats; this means that single-column figures can
overtake double-column figures (or vice-versa), and you observe later
figures appear in the document before early ones.  The same is true,
of course, for tables, or for any user-defined float.
<p/>The LaTeX team recognise the problem, and provides a package
(<i>fixltx2e</i>) to deal with it.  <i>Fixltx2e</i> amalgamates
the two defer lists, so that floats don&#8217;t get out of order.
<p/>For those who are still running an older LaTeX distribution, the
package <i>fix2col</i> should serve.  This package (also by a
member of the LaTeX team) was the basis of the relevant part of
<i>fixltx2e</i>.  The functionality has also been included in
<i>dblfloatfix</i>, which also has code to place full-width floats
at <a href="FAQ-2colfloat.html"><code>[b]</code> placement</a>.
<p/>Once you have loaded the package, no more remains to be done: the
whole requirement is to patch the output routine; no extra commands
are needed.
<dl>
<dt><tt><i>dblfloatfix.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/dblfloatfix.zip">macros/latex/contrib/dblfloatfix</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/dblfloatfix/">browse the directory</a>)
<dt><tt><i>fix2col.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fix2col.zip">macros/latex/contrib/fix2col</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fix2col/">browse the directory</a>)
<dt><tt><i>fixltx2e.sty</i></tt><dd>Part of the LaTeX distribution
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=2colfltorder">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=2colfltorder</a>
</body>