单表环境中的 threeparttables

单表环境中的 threeparttables

我有两个threeparttable表格,我想将它们并排放置在一个单表环境中。之前我有一个单表threeparttable,中间有一列(共 5 列),没有边框,看起来就像是同一浮动框中的两个表格。但是,我确信这是可以做到的,但我似乎遗漏了一些东西,因为我的表格是堆叠在一起的,尽管tabular被 隔开\qquad,并且tablenotes适用于两个表格的 也对齐相同。MWE 如下:

\documentclass[english]{report}
\usepackage{threeparttable}

\begin{document}
\begin{table}
\centering

\begin{threeparttable}
\begin{tabular}{r>{\centering}m{1.5cm}}
\toprule
\textbf{Site} & \textbf{Size}\tabularnewline
\midrule
\midrule
\textbf{Cuoli} & 3.5 ha\tabularnewline
\midrule
\textbf{Erlitou} & \textasciitilde{}5 ha \tnote{i}\tabularnewline
\midrule
\textbf{Gaoya} & 57 ha\tabularnewline
\midrule
\textbf{Huizui} & 10 ha\tabularnewline
\midrule
\textbf{Ligou} & 10 ha\tabularnewline
\midrule 
\textbf{Shaochai} & n/a \tnote{ii}\tabularnewline
\midrule
\textbf{Tanxiaoguan} & 10 ha\tabularnewline
\midrule
\textbf{Wangwan} & 2 ha\tabularnewline
\midrule
\textbf{Xiaopangou} & 10 ha\tabularnewline
\midrule
\multicolumn{2}{c}{(a) Longshan Period}\tabularnewline
\end{tabular}

\qquad

\begin{tabular}{r>{\centering}m{1.5cm}}
\toprule
\textbf{Site} & \textbf{Size}\tabularnewline
\midrule
\midrule
\textbf{Cuoli} & 3.5 ha\tabularnewline
\midrule
\textbf{Erlitou} & 300 ha\tabularnewline
\midrule
\textbf{Gaoya} & 80 ha\tabularnewline
\midrule
\textbf{Huizui} & 25 ha\tabularnewline
\midrule
\textbf{Ligou} & 10 ha\tabularnewline
\midrule
\textbf{Shaochai} & 100 ha\tabularnewline
\midrule
\textbf{Tanxiaoguan} & 20 ha\tabularnewline
\midrule
\textbf{Wangwan} & n/a \tnote{iii}\tabularnewline
\midrule
\textbf{Xiaopangou} & 20 ha\tabularnewline
\midrule
\multicolumn{2}{c}{(b) Erlitou Period}\tabularnewline
\end{tabular}

\begin{tablenotes} \scriptsize \item[i] The Erlitou site is occupied during the early Longshan period (see ), but the earlier occupation has been completely subsumed by the massive growth of the subsequent Erlitou period; the size given here is only an estimate. However, we do know that the site is abandoned during the late Longshan period, and is re-occupied by phase I of the Erlitou period. \item[ii] The Shaochai site is not present during the Longshan period, not appearing until phase I of the Erlitou period. \item[iii] The Wangwan site appears not to have much of a presence by the Erlitou period, though the Wangwan excavators do mention some Erlitou traits evident in pottery forms during the site's final occupation in the late Longshan (see "Wangwan Site" description, p.\pageref{WangwanSite}). \end{tablenotes}

\caption{Site sizes, by period}
\label{tab:Site-sizes-by-Period}
\end{threeparttable}
\end{table}

\end{document}

答案1

你可以将两个tabulars 括在另一个 s 中,tabular例如

\begin{threeparttable}
 \begin{tabular}{c@{\hspace{1cm}}c}
  \begin{tabular}{r>{\centering}m{1.5cm}}
    Content
  \end{tabular}
&
  \begin{tabular}{r>{\centering}m{1.5cm}}
    Content
  \end{tabular}
\end{tabular}

完整代码:

\documentclass[english]{report}
\usepackage{threeparttable,booktabs,array,showframe}
\begin{document}
\begin{table}
\centering
\begin{threeparttable}
\begin{tabular}{c@{\hspace{1cm}}c}
\begin{tabular}{r>{\centering}m{1.5cm}}
\toprule
\textbf{Site} & \textbf{Size}\tabularnewline
\midrule
\midrule
\textbf{Cuoli} & 3.5 ha\tabularnewline
\midrule
\textbf{Erlitou} & \textasciitilde{}5 ha \tnote{i}\tabularnewline
\midrule
\textbf{Gaoya} & 57 ha\tabularnewline
\midrule
\textbf{Huizui} & 10 ha\tabularnewline
\midrule
\textbf{Ligou} & 10 ha\tabularnewline
\midrule
\textbf{Shaochai} & n/a \tnote{ii}\tabularnewline
\midrule
\textbf{Tanxiaoguan} & 10 ha\tabularnewline
\midrule
\textbf{Wangwan} & 2 ha\tabularnewline
\midrule
\textbf{Xiaopangou} & 10 ha\tabularnewline
\midrule
\multicolumn{2}{c}{(a) Longshan Period}\tabularnewline
\end{tabular}
&
\begin{tabular}{r>{\centering}m{1.5cm}}
\toprule
\textbf{Site} & \textbf{Size}\tabularnewline
\midrule
\midrule
\textbf{Cuoli} & 3.5 ha\tabularnewline
\midrule
\textbf{Erlitou} & 300 ha\tabularnewline
\midrule
\textbf{Gaoya} & 80 ha\tabularnewline
\midrule
\textbf{Huizui} & 25 ha\tabularnewline
\midrule
\textbf{Ligou} & 10 ha\tabularnewline
\midrule
\textbf{Shaochai} & 100 ha\tabularnewline
\midrule
\textbf{Tanxiaoguan} & 20 ha\tabularnewline
\midrule
\textbf{Wangwan} & n/a \tnote{iii}\tabularnewline
\midrule
\textbf{Xiaopangou} & 20 ha\tabularnewline
\midrule
\multicolumn{2}{c}{(b) Erlitou Period}\tabularnewline
\end{tabular}
\end{tabular}
\begin{tablenotes} \scriptsize \item[i] The Erlitou site is occupied during the early Longshan period (see ), but the earlier occupation has been completely subsumed by the massive growth of the subsequent Erlitou period; the size given here is only an estimate. However, we do know that the site is abandoned during the late Longshan period, and is re-occupied by phase I of the Erlitou period. \item[ii] The Shaochai site is not present during the Longshan period, not appearing until phase I of the Erlitou period. \item[iii] The Wangwan site appears not to have much of a presence by the Erlitou period, though the Wangwan excavators do mention some Erlitou traits evident in pottery forms during the site's final occupation in the late Longshan (see "Wangwan Site" description, p.\pageref{WangwanSite}). 
\end{tablenotes}
\caption{Site sizes, by period}
\label{tab:Site-sizes-by-Period}
\end{threeparttable}
\end{table}

\end{document}

在此处输入图片描述

相关内容