threeparttablex can be used to add table notes to tabu tabulars*. If the tabular spans \textwidth, the output is as expected. It seems however that the tablenotes environment does not adjust its width if the tabular is narrow, although of course this would be desirable.
1) Is there any option/command which is intended to automatically adjust the tablenotes environment's width?
2) If not, is there a workaround?
@ 2) According to this answer, threeparttablex does know the tabular's width. Moreover, given that for the threeparttable package, which threeparttablex supposedly builds upon, the package documentation states "you can redefine the whole tablenotes environment", it seems that it should be possible to find a workaround.
\documentclass{article}
\usepackage{booktabs}
\usepackage{tabu}
\usepackage{threeparttablex}
\begin{document}
\centering
\begin{ThreePartTable}
\begin{tabu} to .4\textwidth {XX}
a & b \\\toprule
0 & 1 \\\bottomrule
\end{tabu}
\begin{tablenotes}
\footnotesize
\item[*] This is a long table note text, long enough to exceed the table's width.
\end{tablenotes}
\end{ThreePartTable}
\end{document}
*threeparttablex is designed to extend threeparttable to longtable. Even though the manual does not mention it, threeparttablex works with tabu, which threeparttable does not. Replacing threeparttablex's ThreePartTable environment in the above code with a threeparttable environment gives an "Extra }, or forgotten \endgroup." error.

threeparttablexto the question. Your patch does interfere with otherthreeparttablextables (now: narrow table notes for wide tables), however, since besides the note issue the patch does makethreeparttablework withtabu, I replacedthreeparttablex. I'd be interested in what exactly the patch does, could you give a hint on that? – dgs May 20 '12 at 08:20captionpackage before the patch results in compilation errors. Loading it afterwards though, seems to be ok though. – pmav99 Jun 19 '13 at 11:32subfigpackage. Load it after the patch, not before. – Lucas Mar 01 '22 at 18:56