# Issues with footnotes using wrapping parbox with longtable, threeparttable and tablenotes

I have an issue with footnote not showing up when I wrap the threeparttable/longtable with a parbox. If I remove the wrapping parbox from the code below, the footnote show up under the table, as I want it to.

Update - for clarification: The reason for wrapping the table are that in the complete document I need to wrap a couple of longtables so that they "group" and don't get splitted on different pages. So a solution to do the grouping in another way could also be the solution for my problem.

\documentclass{article}
\usepackage{longtable}
\usepackage{threeparttablex}
\begin{document}
\parbox{\textwidth}{
\begin{ThreePartTable}
\begin{TableNotes}
\item[a] {\scriptsize testfootnot}
\end{TableNotes}
\begin{longtable}{p{50mm} }
Col1\tabularnewline
\insertTableNotes
\endlastfoot
Value with footnote \quad\tnote{a}\tabularnewline
\end{longtable}
\end{ThreePartTable}
} %end parbox
\end{document}

• Out of curiosity: Why do you wrap the table with a \parbox? – DG' Feb 11 at 13:37
• I have three longtables that needs to "stick together" so that I don't get a new page in the middle of the three tables. I found that a parbox solves that problem. The whole "document" can have unlimited number of these "three longtable groups". It's a generated report with configurable header and footer, so I can't know in advance how it will be printed. – Joakim Feb 11 at 13:40
• If it doesn't break across pages, don't use longtable. That's just asking for trouble. – John Kormylo Feb 11 at 15:19
• Also, foothotes are not compatible with \parbox. See tex.stackexchange.com/questions/314375/… – John Kormylo Feb 11 at 15:29
• No clue. I do know that threeparttable and longtable both support footnotes using different approaches, that threeparttable is supposed to be inside a table environment (one page only) while longtable is not. In fact, longtable is not supposed to be inside any other environment, nor does it support twocolumn. You might check out tex.stackexchange.com/questions/359903/… – John Kormylo Feb 13 at 17:09