I recently wanted to put a footnote reference inside a table. Unfortunately, LaTeX
makes it somewhat difficult to add footnotes inside floats (e.g.,
to put a footnote inside a
makes it somewhat difficult to add footnotes inside floats (e.g.,
tabular
). If you tryto put a footnote inside a
tabular
, then pdflatex
will show the reference but not the footnote itself! I came across several suggestions for fixing this:
One idea is to put the table in a
the bottom of the table (in its own numbering system) — but I wanted the footnote
to show up at the bottom of the page like other footnotes!
minipage
. This causes the footnote to show up atthe bottom of the table (in its own numbering system) — but I wanted the footnote
to show up at the bottom of the page like other footnotes!
Another idea was to manually specify the footnote number inside the text and then
use the
this footnote number inside the tabular.
use the
\footnotetext
command (outside the tabular
) to manually add the footer. Unfortunately, this is not a robust solution since it forces you to manually maintainthis footnote number inside the tabular.
Building on the previous idea, I discovered a way to make footnotes appear inside
approach:
tabular
swithout breaking the automatic numbering of footnotes. Here is myapproach:
- Include the “fmtcount” package so that you can display the values of
- counters (e.g., the footnote counter):
- Immediately before your tabular, increment the footnote counter:
- Next, specify the contents of the footnote:
- Finally, add a reference to the footnote inside the table:
You can extend this idea to add multiple footnotes within a single
by adjusting the counters (using
complete example of how to add two footnotes inside a single
(you can see the PDF output here):
tabular
by adjusting the counters (using
\addtocounter
) appropriately. Here is acomplete example of how to add two footnotes inside a single
tabular
(you can see the PDF output here):
No hay comentarios:
Publicar un comentario