
\minipage
환경 내부, 환경 내부에 테이블 노트를 배치했습니다 \table
. 나는 그것이 위치한 \minipage
임의의 너비와 일치하도록 너비 인수를 전달하고 싶습니다 .\table
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}
스크린샷:
나는 이미 시도했고 linewidth
동일한 \textwidth
결과를 얻었습니다. 을 포함하지 않고 내 목표를 달성하기 위한 더 나은 설정이 있다면 minipage
기꺼이 듣겠지만 tabular
가능하다면 호환되어야 합니다.
내 테이블은 Stata의 명령에 의해 생성됩니다 esttab
. 이것이 답변에 영향을 미칠 것이라고는 생각하지 않지만, 동일한 질문을 검색하는 동료 Stata 사용자에게 도움이 될 수 있도록 언급합니다.
답변1
패키지 의 도움으로 threeparttable
:
\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}