How to fix LaTeX missing footnotes in tabular environment
Problem:
You have LaTeX code with a \footnote inside a \tabular like this:
latex_tabular_footnote_example.tex
\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:
example.txt
\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!
Check out similar posts by category:
LaTeX
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow