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
63
64
65
66
|
<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’t work in tables;
the table traps the footnotes and they can’t escape to the bottom of
the page. As a result, you get footnote marks in the table, and
nothing else.
<p/>This accords with common typographic advice: footnotes and tables are
reckoned not to mix.
<p/>The solution, if you accept the advice, is to use “table notes”.
The package <i>threeparttable</i> provides table notes, and
<i>threeparttablex</i> additionally supports them in
<code>longtable</code>s. <i>Threeparttable</i> works happily in
ordinary text, or within a <code>table</code> float.
<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 “table” may consist of diagrams, and a parameter in
<code>\</code><code>ctable</code>’s optional argument makes the float that is created a
“figure” rather than a “table”.
<p/>If you really want “real” footnotes in tables, despite the expert
advice, you can:
<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’ve closed the <code>tabular</code> environment.
This is described in Lamport’s book, but it gets messy if there’s
more than one footnote.
<li> Stick the table in a <code>minipage</code>. Footnotes in the
table then “work”, in the <code>minipage</code>’s style, with no
extra effort. (This is, in effect, somewhat like table notes, but
the typeset appearance isn’t designed for the job.)
<li> Use <i>tabularx</i> or <i>longtable</i> from the LaTeX
tools distribution; they’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 as you might expect, 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 ‘tools’
bundle.
</ul>
All the techniques listed will work, to some extent, whether in a float or
in ordinary text. The author of this FAQ answer doesn’t actually
recommend any of them, believing that table notes are the way to go…
<dl>
<dt><tt><i>ctable.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/ctable.zip">macros/latex/contrib/ctable</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/ctable/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/ctable.html">catalogue entry</a>
<dt><tt><i>footnote.sty</i></tt><dd>Distributed as part of <a href="http://mirror.ctan.org/macros/latex/contrib/mdwtools.zip">macros/latex/contrib/mdwtools</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/mdwtools/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/footnote.html">catalogue entry</a>
<dt><tt><i>longtable.sty</i></tt><dd>Distributed as part of <a href="http://mirror.ctan.org/macros/latex/required/tools.zip">macros/latex/required/tools</a> (or <a href="http://mirror.ctan.org/macros/latex/required/tools/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/longtable.html">catalogue entry</a>
<dt><tt><i>mdwtab.sty</i></tt><dd>Distributed as part of <a href="http://mirror.ctan.org/macros/latex/contrib/mdwtools.zip">macros/latex/contrib/mdwtools</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/mdwtools/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/mdwtab.html">catalogue entry</a>
<dt><tt><i>threeparttable.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/threeparttable.zip">macros/latex/contrib/threeparttable</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/threeparttable/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/threeparttable.html">catalogue entry</a>
<dt><tt><i>threeparttablex.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/threeparttablex.zip">macros/latex/contrib/threeparttablex</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/threeparttablex/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/threeparttablex.html">catalogue entry</a>
<dt><tt><i>tabularx.sty</i></tt><dd>Distributed as part of <a href="http://mirror.ctan.org/macros/latex/required/tools.zip">macros/latex/required/tools</a> (or <a href="http://mirror.ctan.org/macros/latex/required/tools/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/tabularx.html">catalogue entry</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>
|