I want to make table footnotes by nesting a tabular or tabulary inside a minipage, and that inside a table. When I do this with tabular, it works exactly as it should. But with tabulary, it produces two sets of footnotes at the bottom, and the footnote numbers in the main text are those of the duplicate footnotes.
\documentclass{memoir}
\usepackage{tabulary,lipsum}
\begin{document}
Why are footnotes duplicated when a tabulary is placed inside a minipage?
It happens in memoir class and the standard \LaTeX classes.
See table~\ref{table:mwe} for an example.
\begin{table}
\caption{Tabulary inside minipage with footnotes}
\label{table:mwe}
\begin{minipage}{\textwidth}
\begin{tabulary}{\textwidth}{lL}
Lipsum para. 1%
\footnote{This is the first footnote.}
& \lipsum[1]\
Lipsum para. 2%
\footnote{This is the second footnote.}
& \lipsum[2]\
\end{tabulary}
\end{minipage}
\end{table}
\end{document}
I would prefer a solution that allows me to keep using tabulary, as I have used this technique throughout a 400-page dissertation. I am using the memoir class, but it also happens in the standard LaTeX classes.
This question seems to stem from the same problem.
footmiscpackage, but it did not correct it. – Clément Jun 27 '14 at 20:28tabulary, so it is a strange world to me! – Clément Jun 27 '14 at 20:32\captionor AMS alignments or any other construct that typesets the content multiple times while experimenting with the layout. – David Carlisle Jun 27 '14 at 20:34