# Why footnote doesn't work in tabular environment?

This is what I'm trying to do:

\documentclass[11pt,oneside]{article}
\usepackage{tablefootnote}
\begin{document}
\begin{tabular}{l}
Hello\footnote{World!} \\
Hello\tablefootnote{World!} \\
\end{tabular}
\end{document}


I see footnote marks, but I don't see footnote texts. What is wrong?

• as should be documented in any manual that tells you \footnote command exists, it has to be in the top level of the page so it can migrate to the end, a simple \mbox would be enough to stop it, it doesn't have to be in a tabular. You can use \footnotemark in the tabular and \footnotetext somewher safe where the text can migrate. – David Carlisle Jun 28 '18 at 6:52

I will make the assumption that in your real documents, the footnotes associated with tabular material are a bit less simplistic than "World". If that's indeed the case, you may want to familiarize yourself with the powerful threeparttable package, its \tnote macro, and its tablenotes environment. The argument of \tnote can be just about any symbol, and arguments can be repeated if needed.

\documentclass[11pt]{article}
\usepackage{threeparttable,array}
\begin{document}
\begin{center}
\setlength\extrarowheight{2pt} % for a more open look
\begin{threeparttable}
\begin{tabular}{l}
\hline
Hello\tnote{a} \\
Goodbye\tnote{*} \\
\hline
\end{tabular}
\footnotesize
\begin{tablenotes}
\item[a] World!
\item[*] World.
\end{tablenotes}
\end{threeparttable}
\end{center}
\end{document}

• Yay, yet another table package and environment. – T. Verron Jun 28 '18 at 7:41