summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-footintab.html
blob: b5cf890a453bd30449f47ff6eef2193eaa33ead3 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<head>
<title>UK TeX FAQ -- question label footintab</title>
</head><body>
<h3>Footnotes in tables</h3>
<p/>The standard LaTeX <code>\</code><code>footnote</code> command doesn&rsquo;t work in tables; the table
traps the footnotes and they can&rsquo;t escape to the bottom of the page.
<p/>If your table is floating, your best bet is (unfortunately) to put the
table in a <code>minipage</code> environment and to put the notes
underneath the table, or to use Donald Arseneau&rsquo;s package
<i>threeparttable</i> (which implements &ldquo;table notes&rdquo; proper).
<p/>The <i>ctable</i> package extends the model of
<i>threeparttable</i>, and also uses the ideas of the
<i>booktabs</i> package.  The <code>\</code><code>ctable</code> command does the complete
job of setting the table, placing the caption, and defining the
notes.  The &ldquo;table&rdquo; may consist of diagrams, and a parameter in
<code>\</code><code>ctable</code>&rsquo;s optional argument makes the float that is created a
&ldquo;figure&rdquo; rather than a &ldquo;table&rdquo;.
<p/>Otherwise, if your table is not floating (it&rsquo;s just a
&lsquo;<code>tabular</code>&rsquo; in the middle of some text), there are several
things you can do to fix the problem.
<ul>
<li> Use <code>\</code><code>footnotemark</code> to position the little marker
  appropriately, and then put in <code>\</code><code>footnotetext</code> commands to fill in
  the text once you&rsquo;ve closed the <code>tabular</code> environment.
  This is described in Lamport&rsquo;s book, but it gets messy if there&rsquo;s
  more than one footnote.
<li> Stick the table in a <code>minipage</code> anyway.  This provides all the
  ugliness of footnotes in a minipage with no extra effort.
<li> Use <i>threeparttable</i> anyway; the package is intended for
  floating tables, and the result might look odd if the table is not
  floating, but it will be reasonable.
<li> Use <i>tabularx</i> or <i>longtable</i> from the LaTeX
  tools distribution; they&rsquo;re noticeably less efficient than the
  standard <code>tabular</code> environment, but they do allow
  footnotes.
<li> Use <i>footnote</i>, which provides an
  <code>savenotes</code> which collects all footnotes and emits them
  at the end of the environment; thus if you put your
  <code>tabular</code> environment inside the environment, the
  footnotes will appear as needed.  Alternatively, you may use
  <code>\</code><code>makesavenoteenv{tabular}</code> in the preamble of your
  document, and tables will all behave as if they were inside a
  <code>savenotes</code> environment.
<li> Use <i>mdwtab</i> from the same bundle; it will handle
  footnotes properly, and has other facilities to increase the beauty
  of your tables.  Unfortunately, it may be incompatible with other
  table-related packages, though not those in the standard &lsquo;tools&rsquo;
  bundle.
</ul>
<p/>The documentation of <i>threeparttable</i> appears in the package
file itself; that of <i>ctable</i> is distributed as a PDF
file (for convenience&rsquo;s sake).
<dl>
<dt><tt><i>ctable.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/ctable.zip">macros/latex/contrib/ctable</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/ctable.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/ctable/">browse</a>)
<dt><tt><i>footnote.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mdwtools.zip">macros/latex/contrib/mdwtools</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mdwtools.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/mdwtools/">browse</a>)
<dt><tt><i>longtable.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/tools.zip">macros/latex/required/tools</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/tools.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/tools/">browse</a>)
<dt><tt><i>mdwtab.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mdwtools.zip">macros/latex/contrib/mdwtools</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mdwtools.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/mdwtools/">browse</a>)
<dt><tt><i>threeparttable.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/threeparttable.sty">macros/latex/contrib/misc/threeparttable.sty</a>
<dt><tt><i>tabularx.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/tools.zip">macros/latex/required/tools</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/tools.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/tools/">browse</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=footintab">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=footintab</a>
</body>