Resource for answer in https://tex.stackexchange.com/questions/109467/footnote-in-tabular-environment .
Packages to be tested:
footnote
credit to https://tex.stackexchange.com/a/109471/250119footnotehyper
package --- direct replacement forfootnote
package.tablefootnote
credit to https://tex.stackexchange.com/a/35327/250119 or https://tex.stackexchange.com/a/35328/250119 or https://tex.stackexchange.com/a/35327/250119longtable
package. (it has native footnote support. As mentioned in the documentation,\footnote
will not work in the head or foot sections of the table.)ftnxtra
package credit to https://tex.stackexchange.com/a/35276/250119threeparttable
package credit to https://tex.stackexchange.com/a/327385/250119 or https://tex.stackexchange.com/a/1590/250119tabularx
package credit to https://tex.stackexchange.com/a/108544/250119bidiftnxtra
package credit to https://tex.stackexchange.com/a/109564/250119nicematrix
package credit to https://tex.stackexchange.com/a/645484/250119 or https://tex.stackexchange.com/a/612195/250119tabularray
package credit to https://tex.stackexchange.com/a/614393/250119- no package, use raw
\footnotemark
and\footnotetext
and\addtocounter{footnote}{...}
credit to https://tex.stackexchange.com/a/109470/250119 or https://tex.stackexchange.com/a/1607/250119
Features to be tested:
- hyperref support
- footnotetext are placed on the correct page where the footnotemark appear for floating table
- automatic numbering when there are multiple footnotes
- footnotes are placed below the table/at the bottom of the page
- support for
tabular
environment itself withouttable
environment around it - support for floating environment,
tabular
insidetable
Result:
Package | 1 | 2 | 3 | 4 | 5 | 6 |
---|---|---|---|---|---|---|
footnotehyper | yes | no | yes | bottom of the page | yes | yes |
footnote | one link per table | no | yes | bottom of the page | yes | yes |
tablefootnote | yes | no | yes | bottom of the page | no | yes |
longtable | only go to last page | no | yes | bottom of the page | yes | yes |
ftnxtra | no | no | yes | bottom of the page | yes | no |
threeparttable | no | yes | yes | below the table | yes | yes |
tabularx | no | no | yes | bottom of the page | yes | no |
bidiftnxtra | no | no | yes | bottom of the page | yes | no |
nicematrix | yes | no | yes | both supported | yes | no |
tabularray | yes | yes | no | below the table | yes | yes |
raw footnotemark/footnotetext | one link per table | no | yes | bottom of the page | yes | no |
Things that could be tested, but isn't:
supertabular
packagectable
packagetabularx
packagethreeparttablex
package- Ulrike Fischer's answer at https://tex.stackexchange.com/a/314374/250119
- Joseph Wright's answer at https://tex.stackexchange.com/a/35275/250119
Features that could be tested, but isn't:
- support for
align
environment fromamsmath