How to fix LaTeX missing footnotes in tabular environment
Problem:
You have LaTeX code with a \footnote
inside a \tabular
like this:
\documentclass{scrartcl}
\begin{document}
\begin{tabular}{p{2cm}|p{2cm}|}
\textbf{Column A\footnote{This is a footnote!}} & \textbf{Column B}\\
1 & 2\\
3 & 4\\
\end{tabular}
\end{document}
but LaTeX/PDFLaTeX is not showing any of the footnotes you declared inside the \tabular
environment.
Solution
Use this code just after your \documentclass
declaration:
\usepackage{footnote}
\makesavenoteenv{tabular}
Then recompile your LaTeX code. The footnotes inside your tabular
should now appear as expected.
Note that if you are using other environments than \begin{tabular}
you might need to add more \makesavenoteenv
declarations for the correct environments. The tabularx
environment from the tabularx
package works with footnotes out-of-the box without any additional packages!