Resource for answer in https://tex.stackexchange.com/questions/109467/footnote-in-tabular-environment .
Packages to be tested:
footnotecredit to https://tex.stackexchange.com/a/109471/250119footnotehyperpackage --- direct replacement forfootnotepackage.tablefootnotecredit to https://tex.stackexchange.com/a/35327/250119 or https://tex.stackexchange.com/a/35328/250119 or https://tex.stackexchange.com/a/35327/250119longtablepackage. (it has native footnote support. As mentioned in the documentation,\footnotewill not work in the head or foot sections of the table.)ftnxtrapackage credit to https://tex.stackexchange.com/a/35276/250119threeparttablepackage credit to https://tex.stackexchange.com/a/327385/250119 or https://tex.stackexchange.com/a/1590/250119tabularxpackage credit to https://tex.stackexchange.com/a/108544/250119bidiftnxtrapackage credit to https://tex.stackexchange.com/a/109564/250119nicematrixpackage credit to https://tex.stackexchange.com/a/645484/250119 or https://tex.stackexchange.com/a/612195/250119tabularraypackage credit to https://tex.stackexchange.com/a/614393/250119- no package, use raw
\footnotemarkand\footnotetextand\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
tabularenvironment itself withouttableenvironment around it - support for floating environment,
tabularinsidetable
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:
supertabularpackagectablepackagetabularxpackagethreeparttablexpackage- 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
alignenvironment fromamsmath