When I use the mdframed
environment around a table, I encounter two problems: (1) The footnotes do not appear at the bottom of the page; (2) The footnotes are marked with letters, while the rest of the footnotes in my document are in Arabic.
I tried using the tablefootnote
package, but did not have much success. I wrote \footnotemark{}
where I want a footnote, and then put footnotetext[1]{Text I want}
outside of the mdframed environment. But this seemed like a really bad idea, because I need to manually adjust the footnote numbering if I add footnotes earlier in the document. (For example: if I add a footnote earlier than this one, I would need to go back and change footnotetext[1]{Text I want}
to footnotetext[2]{Text I want}
.)
I have included a screenshot:
And the code that produced the screenshot:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage{float}
\usepackage{framed}
\usepackage{tcolorbox}
\usepackage{enumitem}
\usepackage{tablefootnote} %allows footnotes in tables to appear outside the table
%%table packages
\usepackage{booktabs}
\usepackage{threeparttable}
\usepackage{mdframed}
\begin{document}
If I have footnote in the text\footnote{The first footnote} it gets put at the bottom of the page. But if my footnote is inside the \fbox{mdframed} environment, then the footnotes don't appear.
\begin{mdframed}
\begin{table}[H]
\hspace{-5mm}
\begin{tabular}{p{35mm} p{25mm} <\raggedright }
\underline{Column 1} & \underline{Column 2} \\
Text & more text \\
Text with footnote\footnote{I want this footnote to be at the bottom, and in Arabic numbering!} & ?? \\
\end{tabular}
\end{table}
\end{mdframed}
This should be footnote number three\footnote{The third footnote}, but it is footnote number two.
\end{document}
mdframed
is based onminipage
hence the position of footnotes withinminipage
is inherited.