I have a threeparttable in a memoir document that I would like to at most stretch from the text block's inner margin to the outer margin of the margin notes. I would further like for the table to start at the inner margin on odd numbered pages and end at the inner margin on odd numbered pages.
I thought that combination of tabulary and floatrow would give me this and thusly I concocted the following, which sadly does not at all what I want. It is clear that the tables do not start where I would like them to. I suspect that the width is also wrong. And, perhaps least apparent, the caption of the second table does not appear to have the same width as its table.
What should I be doing instead? I have tried reading the floatrow documentation, but it is pretty quiet on the subject.
\documentclass[twoside]{memoir}
\usepackage{showframe}
\usepackage{threeparttable}
\let\newfloat\undefined% [Fix error loading `floatrow` with `memoir`](https://tex.stackexchange.com/a/246918/71332)
\usepackage{floatrow}
\usepackage{calc}
\newlength{\maxfloatwidth}
\setlength{\maxfloatwidth}{\textwidth+\marginparsep+\marginparwidth}% Ought to be the length from the text block's inner margin to the outer margin of the margin notes
\usepackage{tabulary}
\usepackage{booktabs}
\usepackage{threeparttable}
\usepackage{blindtext}
\begin{document}
\Blindtext[3]
\thisfloatsetup{margins=hangoutside}
\begin{table}[t]
\begin{floatrow}
\ttabbox{\caption{A table heading that goes on and on and on and on and on and on and on and on and on and on}}{\begin{threeparttable}
\begin{tabulary}{\maxfloatwidth}{@{} L c c c @{}}
\toprule
A & B & C & D \tabularnewline
\midrule
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a & 123 & 456 & 789 \tabularnewline
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a & 123 & 456 & 789 \tabularnewline
\bottomrule
\end{tabulary}
\begin{tablenotes}
\item[a] \blindtext
\end{tablenotes}
\end{threeparttable}}
\end{floatrow}
\end{table}
\Blindtext[5]
\thisfloatsetup{margins=hangoutside}
\begin{table}[t]
\begin{floatrow}
\ttabbox{\caption{A table heading that goes on and on and on and on and on and on and on and on and on and on}}{\begin{threeparttable}
\begin{tabulary}{1.2\linewidth}{@{} L c c c @{}}
\toprule
A & B & C & D \tabularnewline
\midrule
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a & 123 & 456 & 789 \tabularnewline
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a & 123 & 456 & 789 \tabularnewline
\bottomrule
\end{tabulary}
\begin{tablenotes}
\item[a] \blindtext
\end{tablenotes}
\end{threeparttable}}
\end{floatrow}
\end{table}
\Blindtext[5]
\end{document}




memoir's ownadjustwidthwould be enough. – daleif Sep 27 '23 at 13:35