So, my document has tables and figures, and some of them require footnotes right under them. Here is what I could come up with:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{perpage} %the perpage package\MakePerPage{footnote} %the perpage package command\renewcommand{\thefootnote}{[\alph{footnote}]}\let\thempfootnote\thefootnote\begin{document}\begin{table}[!h]\caption{Example table}\begin{minipage}[t]{1\textwidth}\begin{tabular}{|c|c|}\hlinetl \footnotemark & tr \\\hlinebl & br \footnotemark \\\hline\end{tabular}\footnotetext{top left}\footnotetext{bottom right}\end{minipage}\end{table}\begin{figure}[!h]\begin{minipage}[t]{1\textwidth}*placeholder for image*\caption{Example figure\protect\footnotemark. Lorem ipsum\protect\footnotemark.}\footnotetext{first sentence}\footnotetext{second sentence}\end{minipage}\end{figure}\end{document}
- Although the perpage package is used, it doesn't reset the footnote counter between minipages. Whereas I would like a separate footnote counter in each minipage.
- Although the footnote markers are placed with correctly ordered indices, the actual footnote explanations in the end of the minipage all have the same index (to be specific, the last assigned within the minipage in question, see attachment). If \setcounter{footnote}{0} is used before the \footnotetext statements, then the footnote explanation have empty indices [].