我有一张带有多个面板的长表。我想将其以横向格式分布在两列中。我使用来包含表格注释。我尝试使用和 来\threeparttable
完成此操作,但遇到了几个问题:1. 两列未对齐。由于表格的第二部分较短,它最终被放置在列的中间而不是顶部。2. 表格注释仅在第一列下方。我希望它们遍布整个表格的长度。我尝试插入第三个迷你页面或表格,但没有成功。3. 我还想确保标题遍布整个表格的长度。4. 缩放比例有些不对。我希望表格填满更多的页面,但表格注释仍然可见。我使用 来适合表格。这是一个 MWS:\minipage
\tabularx
\adjustbox
\documentclass[11pt,oneside]{amsart}
\usepackage{lscape}
\usepackage{multirow}
\usepackage{adjustbox}
\usepackage[flushleft]{threeparttable}
\usepackage[english]{babel} % English
\usepackage[T1]{fontenc}
\usepackage{layout}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{landscape}
\begin{table}
\begin{adjustbox}{width=1\textwidth}
\begin{threeparttable}
\caption{Table}
\begin{minipage}{0.5\linewidth}
\begin{tabular}{lcccccc}
\toprule
\multicolumn{7}{l}{PanelA}
\midrule
& Mean & SD & Median & Min & Max & N \\
Variable A & 1 & 2 & 3 & 4 & 5 & 6 \\
Variable B & 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\multicolumn{7}{l}{PanelB}
\midrule
& Mean & SD & Median & Min & Max & N \\
Variable A & 1 & 2 & 3 & 4 & 5 & 6 \\
Variable B & 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\end{tabular}
\end{minipage}%
\hspace{2mm}
\begin{minipage}{0.5\linewidth}
\begin{tabular}{lcccccc}
\toprule
\multicolumn{7}{l}{PanelA}
\midrule
& Mean & SD & Median & Min & Max & N \\
Variable A & 1 & 2 & 3 & 4 & 5 & 6 \\
Variable B & 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\multicolumn{7}{l}{PanelB}
\midrule
& Mean & SD & Median & Min & Max & N \\
Variable A & 1 & 2 & 3 & 4 & 5 & 6 \\
Variable B & 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\end{tabular}
\end{minipage}%
\begin{tablenotes}
\item Table notes are here and should go over the entire length of the table.
\end{tablenotes}
\end{threeparttable}
\end{adjustbox}
\end{table}
\end{landscape}
\end{document}
多谢!
答案1
像这样?
根据答案这里并采用以下landscape
格式:
\documentclass[11pt,oneside]{amsart}
\usepackage{pdflscape}
\usepackage{booktabs, multirow}
\usepackage[flushleft]{threeparttable}
\usepackage{afterpage}
\begin{document}
\afterpage{\clearpage}
\begin{landscape}
\begin{threeparttable}
\caption{Table}
\setlength\tabcolsep{0pt}
\begin{tabular*}{\linewidth}{p{0.45\linewidth}
@{\extracolsep{\fill}}
p{0.45\linewidth}}
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}l *{6}{c}}
\toprule
\multicolumn{7}{l}{PanelA} \\
\midrule
& Mean & SD & Median & Min & Max & N \\
Variable A & 1 & 2 & 3 & 4 & 5 & 6 \\
Variable B & 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\multicolumn{7}{l}{PanelB} \\
\midrule
& Mean & SD & Median & Min & Max & N \\
Variable A & 1 & 2 & 3 & 4 & 5 & 6 \\
Variable B & 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\end{tabular*}
&
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}l *{6}{c}}
\toprule
\multicolumn{7}{l}{PanelA} \\
\midrule
& Mean & SD & Median & Min & Max & N \\
Variable A & 1 & 2 & 3 & 4 & 5 & 6 \\
Variable B & 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\multicolumn{7}{l}{PanelB} \\
\midrule
& Mean & SD & Median & Min & Max & N \\
Variable A & 1 & 2 & 3 & 4 & 5 & 6 \\
Variable B & 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\end{tabular*}
\end{tabular*}%
\begin{tablenotes}
\item Table notes are here and should go over the entire length of the table.
\end{tablenotes}
\end{threeparttable}
\end{landscape}
\end{document}