summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-floatpages.html
blob: 7143ac976e2ad2450c419fa912db5d85f21f1a73 (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
33
<head>
<title>UK TeX FAQ -- question label floatpages</title>
</head><body>
<h3>Floats on their own on float pages</h3>
<p/>It&#8217;s sometimes necessary to force a float to live on a page by itself.
(It&#8217;s sometimes even necessary for <em>every</em> float to live on a
page by itself.)  When the float fails to &#8216;set&#8217;, and waits for the end
of a chapter or of the document, the natural thing to do is to declare
the float as
<blockquote>
  <code>\</code><code>begin{figure}[p!]</code>
</blockquote><p>
but the overriding <code>!</code> modifier has no effect on float page floats; so
you have to make the float satisfy the parameters.
<a href="FAQ-floats.html">Moving tables and figures</a> offers some
suggestions, but doesn&#8217;t solve the one-float-per-page question.
<p/>The &#8216;obvious&#8217; solution, using the counter <code>totalnumber</code>
(&#8220;total number of floats per page&#8221;) doesn&#8217;t work:
<code>totalnumber</code> only applies to floats on &#8216;text&#8217; pages (pages
containing text as well as one or more float).  So, to allow any
size float to take a whole page, set <code>\</code><code>floatpagefraction</code> really
small, and to ensure that no more than one float occupies a page, make
the separation between floats really big:
<blockquote>
<pre>
\renewcommand\floatpagefraction{.001}
\makeatletter
\setlength\@fpsep{\textheight}
\makeatother
</pre>
</blockquote><p>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=floatpages">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=floatpages</a>
</body>