带有子表的三部分表中的分页符

带有子表的三部分表中的分页符

我的表格包含多个子表格以及末尾的表格注释,它们占两页。我尝试做分页符,我参考这个帖子,但它只是脚注的分页符。这是我的代码:

\documentclass[12pt]{article}
\usepackage{array, boldline}
\newcolumntype{Q}{>{\centering\arraybackslash}X}
\usepackage{booktabs}
\usepackage{subcaption}
\usepackage{tabularx}

\usepackage{threeparttable}
\begin{document}
\begin{table}
\footnotesize
\caption{Multiple Tables with Page Break}\label{tab:LD1}
\begin{threeparttable}
\centering\addtocounter{table}{-1}%

\begin{subtable}{1\textwidth}
\caption{Table 1}\label{tab:LD1-i}
\begin{tabularx}{\textwidth}{QQQQQQQ}
\toprule
& $c=$0.15 & 0.2 & 0.3 & 0.4 & 0.5 & 0.6 \\
\cmidrule{2-7}
$d=$0.9\tnote{b} & 0 & 0 & 0 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.8 & 0 & 0 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.7 & 0 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.6 & 0 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.5 & \textbf{0.5} &\textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.4 & \textbf{0.5} &\textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.3 & \textbf{0.5} &\textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.2 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.1 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
\bottomrule
\end{tabularx}
\end{subtable}\qquad

\begin{subtable}{1\textwidth}
\caption{Table 2}\label{tab:LD1-ii}
\begin{tabularx}{\textwidth}{QQQQQQQ}
\toprule
& $c=$0.15 & 0.2 & 0.3 & 0.4 & 0.5 & 0.6 \\
\cmidrule{2-7}
$d=$0.9 & 0 & 0 & 0 & 0.3692 & 0.3761 & 3799  \\
0.8 & 0 & 0 &  0.3798 & 0.3866  & 0.3901  & 0.3923   \\
0.7 & 0.3732  & 0.3840 & 0.3927  & 0.3965  & 0.3986  & 0.3998   \\
0.6 & 0.3903 & 0.3957  & 0.4006  & 0.4028  & 0.4040  & 0.4048  \\
0.5 & 0.3998 & 0.4028  & \textbf{0.4056}  & \textbf{0.4070}  & \textbf{0.4077}  &     
\textbf{0.4082}  \\
0.4 & \textbf{0.4056} & \textbf{0.4074 } & \textbf{0.4090 } & \textbf{0.4098}  &     
\textbf{0.4103}  & \textbf{0.4106}   \\
0.3 & \textbf{0.4093} & \textbf{0.4103}  & \textbf{0.4112}  & \textbf{0.4117}  & 
\textbf{0.4120}  & \textbf{0.4121}   \\
0.2 & \textbf{0.4117} & \textbf{0.4122}  & \textbf{0.4127}  & \textbf{0.4129}  & 
\textbf{0.4131}  & \textbf{0.4132}   \\
0.1 & \textbf{0.4132} & \textbf{0.4134}  & \textbf{0.4136}  & \textbf{0.4137}  & 
\textbf{0.4138}  & \textbf{0.4138}   \\
\bottomrule
\end{tabularx}
\end{subtable}\qquad

\begin{subtable}{1\textwidth}
\caption{Table 3}\label{tab:LD1-iii}
\begin{tabularx}{\textwidth}{QQQQQQQ}
\toprule
& $c=$0.15 & 0.2 & 0.3 & 0.4  \\
\cmidrule{2-5}
$d=$0.9 & 0 & 0 & 0 & 0  \\
0.8 & 0 & 0 &  0 & 0.2769   \\
0.7 & 0 & 0.2789  & 0.2937 & 0.2996      \\
0.6 & 0.2932 & 0.3017  & 0.3090  & 0.3122    \\
0.5 & 0.3098 & 0.3142  & 0.3183  & 0.3202   \\
0.4 & 0.3196 & 0.3220  & 0.3244  & \textbf{0.3255}  \\
0.3 & \textbf{0.3257} & \textbf{0.3270}  & \textbf{0.3283}  & \textbf{0.3290}  \\
0.2 & \textbf{0.3295} & \textbf{0.3302}  & \textbf{0.3309}  & \textbf{0.3312}  \\
0.1 & \textbf{0.3318} & \textbf{0.3321}  & \textbf{0.3324}  & \textbf{0.3326}  \\
\bottomrule
\end{tabularx}
\end{subtable}\qquad

\begin{subtable}{1\textwidth}
\caption{Table 4}\label{tab:LD1-iv}
\begin{tabularx}{\textwidth}{QQQQQQQ}
\toprule
& $c=$0.15 & 0.2 & 0.3 & 0.35  \\
\cmidrule{2-5}
$d=$0.9 & 0 & 0 & 0 & 0  \\
0.8 & 0 & 0 &  0 & 0   \\
0.7 & 0 & 0  & 0.2623 & 0.2648      \\
0.6 & 0.2637 & 0.2730  & 0.2810  & 0.2823    \\
0.5 & 0.2829 & 0.2876  & 0.2919  & 0.2927   \\
0.4 & 0.2939 & 0.2965  & 0.2989  & 0.2993  \\
0.3 & 0.3007 & 0.3021  & 0.3034  & 0.3037  \\
0.2 & 0.3049 & 0.3056  & 0.3063  & 0.3064  \\
0.1 & 0.3074 & 0.3077  & 0.3081  & 0.3081  \\
\bottomrule
\end{tabularx}
\end{subtable}

\begin{subtable}{1\textwidth}
\caption{Table 4}\label{tab:LD1-iv}
\begin{tabularx}{\textwidth}{QQQQQQQ}
\toprule
& $c=$0.15 & 0.2 & 0.3 & 0.35  \\
\cmidrule{2-5}
$d=$0.9 & 0 & 0 & 0 & 0  \\
0.8 & 0 & 0 &  0 & 0   \\
0.7 & 0 & 0  & 0.2623 & 0.2648      \\
0.6 & 0.2637 & 0.2730  & 0.2810  & 0.2823    \\
0.5 & 0.2829 & 0.2876  & 0.2919  & 0.2927   \\
0.4 & 0.2939 & 0.2965  & 0.2989  & 0.2993  \\
0.3 & 0.3007 & 0.3021  & 0.3034  & 0.3037  \\
0.2 & 0.3049 & 0.3056  & 0.3063  & 0.3064  \\
0.1 & 0.3074 & 0.3077  & 0.3081  & 0.3081  \\
\bottomrule
\end{tabularx}
\end{subtable}

\begin{tablenotes}
\footnotesize
\item[1] Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah 
\item[2] Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah    
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}

答案1

看起来前三个表格式环境可以放在一页上,而最后两个表格式环境可以放在另一页上。为了满足您的格式化目标,我建议您 (a) 使用两个单独的table环境,\ContinuedFloat 在第二个环境的开头使用指令,(b)每个环境table只使用一个环境,(c) 将环境嵌入环境内,以及 (d)在每个环境的末尾提供单独的环境。另外,由于似乎不需要在单元格内自动换行,我还将 (e) 从使用环境切换到使用五个(子)表的环境。subtabletablethreeparttablesubtabletablenotesthreeparttabletabularxtabular*

在此处输入图片描述

\documentclass[12pt]{article}
\usepackage[letterpaper,vmargin=1in]{geometry} % set page parameters as needed
\usepackage{array,booktabs}

\usepackage{subcaption}
\captionsetup[table]{skip=0.5\baselineskip}
\captionsetup[subtable]{skip=0.25\baselineskip}

\usepackage[flushleft]{threeparttable}

\begin{document}

\begin{table}[p]
\setlength{\tabcolsep}{0pt} % let LaTeX figure out the intercolumn whitespace

\caption{Multiple Tables with Page Break}
\label{tab:LD1}

\begin{subtable}{1\textwidth}
\begin{threeparttable}

\caption{Table AA}\label{tab:LD1-i}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ccccccc}
\toprule
& $c=0.15$ & 0.2 & 0.3 & 0.4 & 0.5 & 0.6 \\
\cmidrule{2-7}
$d=0.9$\tnote{a} & 0 & 0 & 0 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.8 & 0 & 0 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.7 & 0 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.6 & 0 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.5 & \textbf{0.5} &\textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.4 & \textbf{0.5} &\textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.3 & \textbf{0.5} &\textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.2 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
0.1 & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5} & \textbf{0.5}  \\
\bottomrule
\end{tabular*}

\bigskip
\caption{Table BB}\label{tab:LD1-ii}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ccccccc}
\toprule
& $c=0.15$ & 0.2 & 0.3 & 0.4 & 0.5 & 0.6 \\
\cmidrule{2-7}
$d=0.9$ & 0 & 0 & 0 & 0.3692 & 0.3761 & 3799  \\
0.8 & 0 & 0 &  0.3798 & 0.3866  & 0.3901  & 0.3923   \\
0.7 & 0.3732  & 0.3840 & 0.3927  & 0.3965  & 0.3986  & 0.3998   \\
0.6 & 0.3903 & 0.3957  & 0.4006  & 0.4028  & 0.4040  & 0.4048  \\
0.5 & 0.3998 & 0.4028  & \textbf{0.4056}  & \textbf{0.4070}  & \textbf{0.4077}  &     
\textbf{0.4082}  \\
0.4 & \textbf{0.4056} & \textbf{0.4074 } & \textbf{0.4090 } & \textbf{0.4098}  &     
\textbf{0.4103}  & \textbf{0.4106}   \\
0.3 & \textbf{0.4093} & \textbf{0.4103}  & \textbf{0.4112}  & \textbf{0.4117}  & 
\textbf{0.4120}  & \textbf{0.4121}   \\
0.2 & \textbf{0.4117} & \textbf{0.4122}  & \textbf{0.4127}  & \textbf{0.4129}  & 
\textbf{0.4131}  & \textbf{0.4132}   \\
0.1 & \textbf{0.4132} & \textbf{0.4134}  & \textbf{0.4136}  & \textbf{0.4137}  & 
\textbf{0.4138}  & \textbf{0.4138}   \\
\bottomrule
\end{tabular*}

\bigskip
\caption{Table CC}\label{tab:LD1-iii}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ccccc}
\toprule
& $c=0.15$ & 0.2 & 0.3 & 0.4  \\
\cmidrule{2-5}
$d=0.9$ & 0 & 0 & 0 & 0  \\
0.8 & 0 & 0 &  0 & 0.2769   \\
0.7 & 0 & 0.2789  & 0.2937 & 0.2996      \\
0.6 & 0.2932 & 0.3017  & 0.3090  & 0.3122    \\
0.5 & 0.3098 & 0.3142  & 0.3183  & 0.3202   \\
0.4 & 0.3196 & 0.3220  & 0.3244  & \textbf{0.3255}  \\
0.3 & \textbf{0.3257} & \textbf{0.3270}  & \textbf{0.3283}  & \textbf{0.3290}  \\
0.2 & \textbf{0.3295} & \textbf{0.3302}  & \textbf{0.3309}  & \textbf{0.3312}  \\
0.1 & \textbf{0.3318} & \textbf{0.3321}  & \textbf{0.3324}  & \textbf{0.3326}  \\
\bottomrule
\end{tabular*}

\bigskip
\footnotesize
\begin{tablenotes}
\item[a] Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah    
\end{tablenotes}
\end{threeparttable}
\end{subtable}

\end{table}


%% allow a page break to occur

\begin{table}[p]
\setlength{\tabcolsep}{0pt}

\ContinuedFloat

\caption{Multiple Tables with Page Break, continued}

\begin{subtable}{1\textwidth}

\begin{threeparttable}

\caption{Table DD}\label{tab:LD1-iv}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ccccc}
\toprule
& $c=0.15$\tnote{b} & 0.2 & 0.3 & 0.35  \\
\cmidrule{2-5}
$d=0.9$ & 0 & 0 & 0 & 0  \\
0.8 & 0 & 0 &  0 & 0   \\
0.7 & 0      & 0       & 0.2623  & 0.2648  \\
0.6 & 0.2637 & 0.2730  & 0.2810  & 0.2823  \\
0.5 & 0.2829 & 0.2876  & 0.2919  & 0.2927  \\
0.4 & 0.2939 & 0.2965  & 0.2989  & 0.2993  \\
0.3 & 0.3007 & 0.3021  & 0.3034  & 0.3037  \\
0.2 & 0.3049 & 0.3056  & 0.3063  & 0.3064  \\
0.1 & 0.3074 & 0.3077  & 0.3081  & 0.3081  \\
\bottomrule
\end{tabular*}

\bigskip
\caption{Table EE}\label{tab:LD1-v}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ccccc}
\toprule
& $c=0.15$ & 0.2 & 0.3 & 0.35  \\
\cmidrule{2-5}
$d=0.9$ & 0 & 0 & 0 & 0  \\
0.8 & 0 & 0 &  0 & 0   \\
0.7 & 0      & 0       & 0.2623  & 0.2648  \\
0.6 & 0.2637 & 0.2730  & 0.2810  & 0.2823  \\
0.5 & 0.2829 & 0.2876  & 0.2919  & 0.2927  \\
0.4 & 0.2939 & 0.2965  & 0.2989  & 0.2993  \\
0.3 & 0.3007 & 0.3021  & 0.3034  & 0.3037  \\
0.2 & 0.3049 & 0.3056  & 0.3063  & 0.3064  \\
0.1 & 0.3074 & 0.3077  & 0.3081  & 0.3081  \\
\bottomrule
\end{tabular*}

\bigskip
\footnotesize
\begin{tablenotes}
\item[b] Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah    
\end{tablenotes}
\end{threeparttable}

\end{subtable}

\end{table}
\end{document}

相关内容