Combine a largura da nota de rodapé da minipágina com o ambiente da tabela em que ela está

Combine a largura da nota de rodapé da minipágina com o ambiente da tabela em que ela está

Coloquei anotações de mesa dentro de um \minipageambiente, dentro de um \tableambiente. Quero entregar o \minipageargumento a width de forma que ele corresponda a qualquer largura arbitrária \tableem que ele se encontra.

MWE:

\documentclass[12pt]{article}
\usepackage{booktabs}
\begin{document}
    \begin{table}
        \centering
        \begin{tabular}{l*{4}{c}}
            \toprule
            & (1) & (2) & (3) & (4) \\
            \midrule
            Outcome & 0.057 & 0.066 & 0.054 & 0.051 \\
            & (0.025) & (0.032) & (0.041) & (0.028) \\
            \bottomrule
        \end{tabular}
        \begin{minipage}{\linewidth}
%       \begin{minipage}{\textwidth} -- what should go in this width argument?
            \footnotesize \textit{This is my footnote explaining the table. I would like to substitute something in for minipage's width argument such that this minipage footnote will have the same width as the table in whose environment it sits. }
        \end{minipage}
    \end{table}
Here's some text just to show how wide a paragraph is for comparison. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\end{document}

Captura de tela:

Captura de tela da tabela com nota de rodapé muito larga

Eu já tentei linewidthe \textwidth, com resultados idênticos. Se houver uma configuração melhor para atingir meu objetivo que não envolva minipage, fico feliz em saber disso - mas deve ser compatível, tabularse possível.

Minha tabela é produzida pelo esttabcomando do Stata - não acho que isso deva afetar a resposta, mas menciono isso caso ajude outros usuários do Stata que procuram a mesma pergunta.

Responder1

Com a ajuda do threeparttablepacote:

insira a descrição da imagem aqui

\documentclass[12pt]{article}
\usepackage{booktabs}
\usepackage{threeparttable}
\begin{document}
    \begin{table}
        \centering
        \begin{threeparttable}
            \begin{tabular}{l*{4}{c}}
                \toprule
                  & (1) & (2) & (3) & (4) \\
                \midrule
                Outcome & 0.057 & 0.066 & 0.054 & 0.051 \\
                & (0.025) & (0.032) & (0.041) & (0.028) \\
                \bottomrule
            \end{tabular}
            \begin{tablenotes}[flushleft]
                \setlength\labelsep{0pt}
                \footnotesize 
                \itshape
                \item This is my footnote explaining the table. I would like to substitute something in for minipage's width argument such that this minipage footnote will have the same width as the table in whose environment it sits. 
            \end{tablenotes}
        \end{threeparttable}
    \end{table}
Here's some text just to show how wide a paragraph is for comparison. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\end{document}

\end{document}

informação relacionada