编辑:

编辑:

我正在尝试使用 table 环境中的 threeparttable 环境创建一个并排有三个子表的表,因为我想内置表格注释,并且我需要一个调整大小框。但是表格注释在表格中间被截断了。有没有办法使用 threeparttable 并创建两个、三个或更多子表和适当的表格注释,而无需在表格下手动创建文本?这是我的代码:

\begin{landscape}
\begin{table}
\caption{Caption of the Table}  
\begin{threeparttable}[]
\centering
\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ 
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
& & & & & \\ \hline 
& & & & & \\ 
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \hline \hline
\end{tabular}
\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.457 & -0.318 & 0.570* & 0.649* & 1.011 \\
& (0.309) & (0.535) & (0.325) & (0.348) & (0.806) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.045 & 0.049 & 0.048 & 0.047 & 0.053 \\ 
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.044** & 0.020 & 0.042** & 0.046** & -0.017 \\
& (0.019) & (0.022) & (0.019) & (0.022) & (0.027) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.084 & 0.087 & 0.086 & 0.085 & 0.091 \\    
& & & & & \\ \hline 
& & & & & \\    
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \hline \hline
\end{tabular}
\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.066 & -0.777 & 0.182 & 0.481 & 1.795 \\
& (0.467) & (0.856) & (0.486) & (0.549) & (1.263) \\
Observations & 204,520 & 204,520 & 204,520 & 204,520 & 204,520 \\
R-squared & 0.028 & 0.036 & 0.033 & 0.032 & 0.045 \\ 
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.045** & 0.044 & 0.044** & 0.044* & 0.048 \\
& (0.021) & (0.032) & (0.021) & (0.024) & (0.052) \\
Observations & 261,101 & 261,101 & 261,101 & 261,101 & 261,101 \\
R-squared & 0.062 & 0.069 & 0.065 & 0.065 & 0.075 \\    
& & & & & \\ \hline
& & & & & \\ 
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \hline \hline
\end{tabular}
}
\end{threeparttable}
\begin{tablenotes}
\small
\item There should be some table notes here that go across all three subtables and not cutoff in the middle 
\end{tablenotes}
\end{table}
\end{landscape}

编辑:

非常感谢您的建议。由于我使用的是 kpfonts,它稍小一些,因此我做了一些小改动后,成功使用了 leandriis 的示例 1。

以下是我的一些回答:

我试图实现的是将三个表格并排放置,并有一个标题和相同的表格注释。由于我是从 stata 生成结果,所以我希望有一个创建表格的自动化过程。我想使用,threeparttable因为我认为这是最简单、最快捷的方式来获得一个结构化的表格,并在表格中内置正确格式的表格注释等,而不必尝试不同的字体大小和表格下文本的位置。而且因为它对于我使用的页面来说太大了resizebox

什么时候适合使用threeparttable?什么是\tnote指令?

答案1

据我所知,您没有threeparttable正确使用软件包的机制。当然,使用软件包时threeparttabletablenotes环境应放在环境内部,而不是外部threeparttable。没有例外。

一个更根本的问题是,为什么要threeparttable首先为手头的材料使用环境?所有tabular环境都不包含任何\tnote指令。如果没有要处理的表格注释,为什么要设置tablenotes环境threeparttable

以下是一些建议。

  • 完全放弃threeparttable相关代码,集中精力使三个tabular环境更具可读性。无论你做什么:不要使用\resizebox指令随意将材料塞进(旋转的)文本块的宽度中。

  • 相反,要专注于改善材料的整体组织或展示。通常的视觉提示对你有利。在下面的例子中,我选择使用三个subtable环境,每个表格环境一个,来为材料提供结构。

  • 下面显示的三个表格采用了三种不同的“外观”。我更喜欢左侧和右侧的表格,但您可能更喜欢中间的表格。请注意,与代码中所做的相比,即使是中间的表格也更加精简。

  • 该代码还使用了tabular*而不是tabular环境,以帮助消除有关列间空格宽度的猜测。

  • 如果您的文档的主字体大小是12pt,则您应该在下面的代码中更改\small为。\footnotesize

在此处输入图片描述

\documentclass{article} 
\usepackage[a4paper,margin=2.5cm]{geometry} % set page parameters suitably
\usepackage{threeparttable,pdflscape,booktabs,subcaption}
\begin{document}
\begin{landscape}
\begin{table}
\small  % use '\footnotesize' if document font size is 12pt
\setlength\tabcolsep{0pt} % let LaTeX figure out intercol. whitespace

\caption{Caption of the Table}    

\begin{subtable}[t]{0.32\linewidth}
\subcaption{First Subtable}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lccccc@{}} 
\toprule
Panel A\\
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Obs. & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
$R^2$ & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ 
\addlinespace\addlinespace
Panel B \\
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Obs. & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
$R^2$ & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\addlinespace\addlinespace 
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ 
\bottomrule
\end{tabular*}
\end{subtable}
\hfill
\begin{subtable}[t]{0.32\linewidth}
\subcaption{Second Subtable}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lccccc@{}} 
\toprule
\multicolumn{6}{c}{Panel A} \\
\midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Obs. & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
$R^2$ & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ 
\addlinespace
\multicolumn{6}{c}{Panel B} \\
\midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Obs. & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
$R^2$ & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule  
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ 
\bottomrule
\end{tabular*}
\end{subtable}
\hfill
\begin{subtable}[t]{0.32\linewidth}
\subcaption{Third Subtable}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lccccc@{}} 
\toprule
\multicolumn{6}{c}{Panel A} \\
\addlinespace%\midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Obs. & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
$R^2$ & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ 
\addlinespace
\multicolumn{6}{c}{Panel B} \\
\addlinespace%\midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Obs. & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
$R^2$ & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\addlinespace%\midrule  
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ 
\bottomrule
\end{tabular*}
\end{subtable}    

\medskip
There should be some table notes here that go across all three subtables and not cutoff in the middle 
%\end{tablenotes}
\end{table}
\end{landscape}
\end{document}

答案2

以下是表格的五种不同版本:

在表格的第一个版本中,我刚刚删除了环境threeparttable。这会导致tablenotes扩展到所有三个表格的宽度。但是,我不推荐这种解决方案,因为它会保留resizebox并为您提供不一致且难以辨认的小字体大小,如以下屏幕截图所示:

在此处输入图片描述


在第二个示例中,我删除了resizebox并手动将字体大小减小到tiny。为了使表格更窄,我还减小了相邻列之间的水平空白。从以下屏幕截图中可以看出,字体比第一个示例中的字体稍大,但仍然太小(至少在我看来是这样):

在此处输入图片描述


为了能够使用更大的字体,我在第三个示例中允许第二个和第三个表格之间有换行符。表格注释的宽度仍然与前两个表格的总宽度一样宽:

在此处输入图片描述


这是一个略有不同的变体,它将表注释放在第三个表旁边。在此示例中,我还\hline用包中的规则替换了您的命令和空行booktabs

在此处输入图片描述


最后,您的表格也可以放入纵向页面,如以下屏幕截图所示。这里我使用了字体scriptsizebooktabs包:

在此处输入图片描述


\documentclass{article}

\usepackage{threeparttable}
\usepackage{pdflscape}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{booktabs}

%%%%% Example 1 %%%%%

\begin{document}
\begin{landscape}
\begin{table}
\caption{Caption of the Table}  
%\begin{threeparttable}[]
\centering \tiny
\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ 
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
& & & & & \\ \hline 
& & & & & \\ 
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \hline \hline
\end{tabular}
%\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.457 & -0.318 & 0.570* & 0.649* & 1.011 \\
& (0.309) & (0.535) & (0.325) & (0.348) & (0.806) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.045 & 0.049 & 0.048 & 0.047 & 0.053 \\ 
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.044** & 0.020 & 0.042** & 0.046** & -0.017 \\
& (0.019) & (0.022) & (0.019) & (0.022) & (0.027) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.084 & 0.087 & 0.086 & 0.085 & 0.091 \\    
& & & & & \\ \hline 
& & & & & \\    
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \hline \hline
\end{tabular}
%\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.066 & -0.777 & 0.182 & 0.481 & 1.795 \\
& (0.467) & (0.856) & (0.486) & (0.549) & (1.263) \\
Observations & 204,520 & 204,520 & 204,520 & 204,520 & 204,520 \\
R-squared & 0.028 & 0.036 & 0.033 & 0.032 & 0.045 \\ 
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.045** & 0.044 & 0.044** & 0.044* & 0.048 \\
& (0.021) & (0.032) & (0.021) & (0.024) & (0.052) \\
Observations & 261,101 & 261,101 & 261,101 & 261,101 & 261,101 \\
R-squared & 0.062 & 0.069 & 0.065 & 0.065 & 0.075 \\    
& & & & & \\ \hline
& & & & & \\ 
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \hline \hline
\end{tabular}
}
%\end{threeparttable}
%\begin{tablenotes}
\small \raggedright
There should be some table notes here that go across all three subtables and not cutoff in the middle There should be some table notes here that go across all three subtables and not cutoff in the middle 
%\end{tablenotes}
\end{table}
\end{landscape}


%%%%% Example 2 %%%%%

\begin{landscape}
\begin{table}
\caption{Caption of the Table}  
%\begin{threeparttable}[]
\centering \tiny \setlength{\tabcolsep}{2.5pt}
%\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ 
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
& & & & & \\ \hline 
& & & & & \\ 
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \hline \hline
\end{tabular}
\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.457 & -0.318 & 0.570* & 0.649* & 1.011 \\
& (0.309) & (0.535) & (0.325) & (0.348) & (0.806) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.045 & 0.049 & 0.048 & 0.047 & 0.053 \\ 
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.044** & 0.020 & 0.042** & 0.046** & -0.017 \\
& (0.019) & (0.022) & (0.019) & (0.022) & (0.027) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.084 & 0.087 & 0.086 & 0.085 & 0.091 \\    
& & & & & \\ \hline 
& & & & & \\    
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \hline \hline
\end{tabular}
\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.066 & -0.777 & 0.182 & 0.481 & 1.795 \\
& (0.467) & (0.856) & (0.486) & (0.549) & (1.263) \\
Observations & 204,520 & 204,520 & 204,520 & 204,520 & 204,520 \\
R-squared & 0.028 & 0.036 & 0.033 & 0.032 & 0.045 \\ 
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.045** & 0.044 & 0.044** & 0.044* & 0.048 \\
& (0.021) & (0.032) & (0.021) & (0.024) & (0.052) \\
Observations & 261,101 & 261,101 & 261,101 & 261,101 & 261,101 \\
R-squared & 0.062 & 0.069 & 0.065 & 0.065 & 0.075 \\    
& & & & & \\ \hline
& & & & & \\ 
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \hline \hline
\end{tabular}
%}
%\end{threeparttable}
%\begin{tablenotes}
\tiny \raggedright
 There should be some table notes here that go across all three subtables and not cutoff in the middle There should be some table notes here that go across all three subtables and not cutoff in the middle 
%\end{tablenotes}
\end{table}
\end{landscape}


%%%%% Example 3 %%%%%


\begin{landscape}
\begin{table}
\caption{Caption of the Table}  
\centering
%\begin{threeparttable}[]
\footnotesize %\setlength{\tabcolsep}{2.5pt}
%\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc} 
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \bottomrule
\end{tabular}
\hfill
\begin{tabular}{lccccc}
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \bottomrule
\end{tabular}


\begin{tabular}{lccccc} 
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \bottomrule
\end{tabular}
%}
%\end{threeparttable}
%\begin{tablenotes}

\scriptsize \raggedright
 There should be some table notes here that go across all three subtables and not cutoff in the middle There should be some table notes here that go across all three subtables and not cutoff in the middle 
%\end{tablenotes}
\end{table}
\end{landscape}


%%%%% Example 4 %%%%%

\begin{landscape}
\begin{table}
\caption{Caption of the Table}  
%\begin{threeparttable}[]
\footnotesize %\setlength{\tabcolsep}{2.5pt}
%\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc} 
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \bottomrule
\end{tabular}
\hfill
\begin{tabular}{lccccc}
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \bottomrule
\end{tabular}

\bigskip

\begin{tabular}{lccccc} 
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \bottomrule
\end{tabular}
%}
%\end{threeparttable}
\hfill
\begin{minipage}{0.625\textwidth}
%\begin{tablenotes}
\scriptsize \raggedright
 There should be some table notes here that go across all three subtables and not cutoff in the middle There should be some table notes here that go across all three subtables and not cutoff in the middle 
%\end{tablenotes}
\end{minipage}
\end{table}
\end{landscape}



%%%%% Example 5 %%%%%

%\begin{landscape}
\begin{table}
\begin{threeparttable}[]
\caption{Caption of the Table}
\scriptsize
%\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc} 
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \bottomrule
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \bottomrule
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\        
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes  & Yes & Yes & Yes \\
Model 3 &  & Yes  &  &  &  \\
Model 4 &  &  & Yes  &  & \\
Model 5 &  &  &  & Yes  & \\
Model 6 &  &  &  &  & Yes \\ \bottomrule
\end{tabular}
%}
\end{threeparttable} 
\begin{tablenotes} \scriptsize
\item There should be some table notes here that go across all three subtables and not cutoff in the middle 
\end{tablenotes}
\end{table}
%\end{landscape}
\end{document}

答案3

表格的第一列仅在第一个表格中的变体(用@{\quad}自己的水平规则(\cmidrule(r){1-1})分隔)。对于表格中的其他列,使用S列类型。与@Mico 类似,我看不出您应该使用˙threeparttable˙的合理理由:

\documentclass{article}
\usepackage[a4paper,margin=2.5cm]{geometry} % set page parameters suitably
\usepackage{booktabse}
\usepackage{siunitx}
\usepackage{pdflscape}
\usepackage{subcaption}

\begin{document}
    \begin{landscape}
\begin{table}
\centering
\small
\setlength\tabcolsep{0pt} % let LaTeX figure out inter column spaces
    \caption{Caption of the Table}
\begin{tabular*}{0.32\linewidth}{@{\extracolsep{\fill}}
                             l@{\quad} 
                        *{5}{S[table-format=1.3,
                             input-symbols=( ),
                             table-space-text-pre=(,
                             table-space-text-post=**]}
                            }
        &   \multicolumn{5}{c}{First case}                          \\
    \cmidrule[\heavyrulewidth]{2-6}        
        &   \multicolumn{5}{c}{Panel A}                             \\
    \cmidrule(r){1-1}\cmidrule{2-6}
LOSSFNK & 0.648*    & 0.613     & 0.724**   & 0.648*    & 1.255     \\
        & (0.337)   & (0.580)   & (0.360)   & (0.364)   & (1.053)   \\
Obser.  & {508,578} & {508,578} & {508,578} & {508,578} & {508,578} \\
$R^2$   & 0.047     & 0.051     & 0.050     & 0.049     & 0.055     \\
    \addlinespace
\multicolumn{5}{c}{Panel B} \\
    \cmidrule(r){1-1}\cmidrule{2-6}
LOSSFNK &  0.050**  &  0.048*   &  0.051**  &  0.047**  &  0.021    \\
        & (0.021)   & (0.028)   & (0.021)   & (0.023)   & (0.041)   \\
Obser.  & {695,035} & {695,035} & {695,035} & {695,035} & {695,035} \\
$R^2$   &  0.080    &  0.083    &  0.082    &  0.081    &  0.086    \\
    \cmidrule(r){1-1}\cmidrule{2-6}
Model 1 & {Yes}     & {Yes}     & {Yes}     & {Yes}     & {Yes}     \\    
Model 2 & {Yes}     & {Yes}     & {Yes}     & {Yes}     & {Yes}     \\  
Model 3 &           & {Yes}     &           &           &           \\  
Model 4 &           &           & {Yes}     &           &           \\ 
Model 5 &           &           &           & {Yes}     &           \\
Model 6 &           &           &           &           & {Yes}     \\
    \cmidrule[\heavyrulewidth](r){1-1}\cmidrule[\heavyrulewidth]{2-6}
\end{tabular*}
    \hfil
\begin{tabular*}{0.32\linewidth}{@{\extracolsep{\fill}}
                      *{5}{S[table-format=1.3,
                             input-symbols=( ),
                             table-space-text-pre=(,
                             table-space-text-post=**]}
                            }
\multicolumn{5}{c}{Second case}                             \\
    \midrule[\heavyrulewidth]                               
\multicolumn{5}{c}{Panel A}                                 \\
    \midrule
 0.050**    & 0.048*    &  0.051**  &  0.047**  &  0.021    \\
(0.021)     & (0.028)   & (0.021)   & (0.023)   & (0.041)   \\
{695,035}   & {695,035} & {695,035} & {695,035} & {695,035} \\
 0.080      & 0.083     & 0.082     & 0.081     & 0.086     \\
    \addlinespace
\multicolumn{5}{c}{Panel B} \\
    \midrule
0.050**     &  0.048*   &  0.051**  &  0.047**  &  0.021    \\
(0.021)     & (0.028)   & (0.021)   & (0.023)   & (0.041)   \\
{695,035}   & {695,035} & {695,035} & {695,035} & {695,035} \\
0.080       &  0.083    &  0.082    &  0.081    &  0.086    \\
    \midrule
{Yes}       & {Yes}     & {Yes}     & {Yes}     & {Yes}     \\
{Yes}       & {Yes}     & {Yes}     & {Yes}     & {Yes}     \\
            & {Yes}     &           &           &           \\
            &           & {Yes}     &           &           \\
            &           &           & {Yes}     &           \\
            &           &           &           & {Yes}     \\
    \midrule[\heavyrulewidth]
\end{tabular*}
    \hfil
\begin{tabular*}{0.32\linewidth}{@{\extracolsep{\fill}}
                      *{5}{S[table-format=1.3,
                             input-symbols=( ),
                             table-space-text-pre=(,
                             table-space-text-post=**]}
                            }
\multicolumn{5}{c}{Third case}                              \\
    \midrule[\heavyrulewidth]                               
\multicolumn{5}{c}{Panel A}                                 \\
    \midrule
 0.648*     &  0.613    &  0.724**  &  0.648*   &  1.255    \\
(0.337)     & (0.580)   & (0.360)   & (0.364)   & (1.053)   \\
{508,578}   & {508,578} & {508,578} & {508,578} & {508,578} \\
 0.047      & 0.051     & 0.050     & 0.049     & 0.055     \\
    \addlinespace
\multicolumn{5}{c}{Panel B} \\
     \midrule
0.050**     &  0.048*   &  0.051**  &  0.047**  &  0.021    \\
(0.021)     & (0.028)   & (0.021)   & (0.023)   & (0.041)   \\
{695,035}   & {695,035} & {695,035} & {695,035} & {695,035} \\
 0.080      &  0.083    &  0.082    &  0.081    &  0.086    \\
    \midrule
{Yes}       & {Yes}     & {Yes}     & {Yes}     & {Yes}     \\
{Yes}       & {Yes}     & {Yes}     & {Yes}     & {Yes}     \\
            & {Yes}     &           &           &           \\
            &           & {Yes}     &           &           \\
            &           &           & {Yes}     &           \\
            &           &           &           & {Yes}     \\
    \midrule[\heavyrulewidth]
\end{tabular*}

%\raggedrigh % in case that you like to have notes left aligned
There should be some table notes that can  go across all three sub tables
\end{table}
    \end{landscape}
\end{document}

在此处输入图片描述

相关内容