两页threeparttable tabularx扩展

两页threeparttable tabularx扩展

看来我使用 tabularx 的 threeparttable 有问题。表格注释没有跨越两页。

你知道我该如何解决这个问题吗?

\documentclass[11pt, oneside]{book}  

\usepackage[square, numbers, comma, sort&compress]{natbib}
\usepackage{subcaption}
\usepackage{array}
\usepackage{bigints}
\usepackage{siunitx}
\usepackage{tabularx, caption}
\usepackage{cellspace}
\setlength\cellspacetoplimit{4pt}
\setlength\cellspacebottomlimit{4pt}
\renewcommand{\tabularxcolumn}[1]{>{\centering}m{#1}}
\usepackage[table]{xcolor}
\usepackage{footnote}
\makesavenoteenv{tabular}
\makesavenoteenv{table}
\usepackage[flushleft]{threeparttable}
\usepackage{longtable}


\usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=3.5cm]{geometry}

\begin{document}

\begin{table}[t!]
\renewcommand{\arraystretch}{1.1}
\centering{
                \caption{holderholderholderholderholderholderholderholderholderholderholderholderholderholderholderholder.}
    \label{ProCons_CSM_DTM_SSM}
    \begin{threeparttable}
        \begin{tabularx}{\textwidth}{|X||*{3}{Cc|}}
            \hline
            & \multicolumn{3}{Cc|}{\textbf{Hooooolder}} \\
            \textbf{holder} & holder & holder & holder \\
            \hline \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline 
            holder & holder & holder & \cellcolor{green!25} no \tnote{2} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
            \hline  
            holder & holder & holder & \cellcolor{green!25} no \tnote{3} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder holder\\        
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{4} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
            \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{5} \\
            \hline          
            holder holder holder holder holder & holder holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\        
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline 
            holder & holder & holder & \cellcolor{green!25} no \tnote{6} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder holder holder holder & \cellcolor{green!25} holder\\                      
            \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{7} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline 
            holder & holder & holder & \cellcolor{green!25} no \tnote{8} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
            \hline  
            holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{12} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
            \hline                                                                      
        \end{tabularx}
        \begin{tablenotes}
            \setlength\labelsep{4pt}
            \footnotesize   
            \item \textbf{Table Notes:}
            \item[1] textetxt. 
            \item[2] textetxt. 
            \item[3] textetxttextetxttextetxttextetxttextetxttextetx ttextetxt textetxt textetxttextetxttex tetxttextetxttextetxttextetxt textetxttextetxt textetxt.
            \item[4] textetxt.
            \item[5] textetxt. 
            \item[6] textetxt.
            \item[7] textetxt.
            \item[8] textetxt.  
            \item[9] textetxt.
            \item[10] textetxt. 
            \item[11] textetxt.                     
            \item[12] textetxt.
        \end{tablenotes}
    \end{threeparttable}
}
\end{table}

\end{document}

在此处输入图片描述

如果我使用第二个表,就会出现第二个问题:

\documentclass[11pt, oneside]{book}

\usepackage[a4paper,
hmargin={2.5cm},
top=2.5cm,
bottom=3.5cm]{geometry}


%\usepackage{caption}
%\usepackage[table]{xcolor}
%\usepackage{array, ltablex, threeparttablex}
%\newcolumntype{C}{>{\centering\arraybackslash}X}
%\setlength\extrarowheight{3pt}
%
%%-------------------------------- show page layout, only for test
%\usepackage{showframe}
%\usepackage{afterpage}
%\renewcommand\ShowFrameLinethickness{0.15pt}
%\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

%------------------------------ Setting for additional table
\usepackage{bigints}
\usepackage{siunitx}

\usepackage{tabularx, caption}
\usepackage{cellspace}
\setlength\cellspacetoplimit{4pt}
\setlength\cellspacebottomlimit{4pt}
\renewcommand{\tabularxcolumn}[1]{>{\centering}m{#1}}


\begin{document}

%   \afterpage{\clearpage
%       \renewcommand{\arraystretch}{1.1}%
%       \captionsetup{position=top}%
%       \captionof{table}{holder holder holder holder holder holder holder     holder holder holder holder holder holder holder holder holder.}
%       \label{ProCons_CSM_DTM_SSM}%
%       \let\TPToverlap=\TPTrlap
%       \begin{tabularx}{\textwidth}{|X||*{3}{C|}}
%           \hline
%           & \multicolumn{3}{C|}{\textbf{Hooooolder}} \\
%           \textbf{holder} & holder & holder & holder \\
%           \hline \hline
%           holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
%           \hline          
%           holder holder holder holder holder & holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
%           \hline
%           \textbf{holder} & holder & holder & holder \\
%           \hline 
%           holder & holder & holder & \cellcolor{green!25} no \tnote{2} \\
%           \hline          
%           holder holder holder holder holder & holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
%           \hline  
%           holder & holder & holder & \cellcolor{green!25} no \tnote{3} \\
%           \hline          
%           holder holder holder holder holder & holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder holder\\        
%           \hline
%           \textbf{holder} & holder & holder & holder \\
%           \hline
%           holder & holder & holder & \cellcolor{green!25} no \tnote{4} \\
%           \hline          
%           holder holder holder holder holder & holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
%           \hline
%           holder & holder & holder & \cellcolor{green!25} no \tnote{5} \\
%           \hline          
%           holder holder holder holder holder & holder holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder\\        
%           \hline
%           \textbf{holder} & holder & holder & holder \\
%           \hline 
%           holder & holder & holder & \cellcolor{green!25} no \tnote{6} \\
%           \hline          
%           holder holder holder holder holder & holder & \cellcolor{green!25} holder holder holder holder & \cellcolor{green!25} holder\\                      
%           \hline
%           holder & holder & holder & \cellcolor{green!25} no \tnote{7} \\
%           \hline          
%           holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
%           \hline
%           \textbf{holder} & holder & holder & holder \\
%           \hline 
%           holder & holder & holder & \cellcolor{green!25} no \tnote{8} \\
%           \hline          
%           holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
%           \hline  
%           holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
%           \hline          
%           holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
%           \hline
%           \textbf{holder} & holder & holder & holder \\
%           \hline \hline
%           holder & holder & holder & \cellcolor{green!25} no \tnote{12} \\
%           \hline          
%           holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
%           \hline
%       \end{tabularx}
%       \begin{ThreePartTable}
%           \begin{tablenotes}
%               \setlength\labelsep{4pt}
%               \footnotesize   
%               \item \textbf{Table Notes:}
%               \item[1] textetxt. 
%               \item[2] textetxt. 
%               \item[3] textetxttextetxttextetxttextetxttextetxttextetx ttextetxt textetxt textetxttextetxttex tetxttextetxttextetxttextetxt textetxttextetxt textetxt.
%               \item[4] textetxt.
%               \item[5] textetxt. 
%               \item[6] textetxt.
%               \item[7] textetxt.
%               \item[8] textetxt.  
%               \item[9] textetxt.
%               \item[10] textetxt. 
%               \item[11] textetxt.                     
%               \item[12] textetxt.
%           \end{tablenotes}
%       \end{ThreePartTable}%
%   }% end of \afterpage

\begin{table}[h]
\caption{Hodor Table}
\setlength\extrarowheight{0.8pt}
\begin{tabularx}{\textwidth}{|X||*{6}{Cc|}}
    \hline
    Hodor & Hodor & \multicolumn{2}{c|}{Hodor Hodor}& \multicolumn{2}{c|}{Hodor} & Hodor Hodor \\
    \cline{2-6}
    & $\boldsymbol{erg}$ &$\boldsymbol{gg}$ & $\boldsymbol{hh}$ &     $\boldsymbol{4_111}$ & {$\boldsymbol{ns}$} & {Hodor Hodor} \\
    \cline{1-7}
    \strut Hodor, \emph{two} HodorHodor & $\begin{bmatrix} JJ_{cc} \end{bmatrix}$ & $\begin{bmatrix} sdW_{11} \\ g_{21} \end{bmatrix}$ & $\begin{bmatrix} s_{11} \\ g_{21} \end{bmatrix}$ & $\begin{bmatrix} sd_{12} \\ wer_{22} \end{bmatrix}$ & $\begin{bmatrix} 0 \end{bmatrix}$ & d \\
    \hline
    \strut Hodor, \emph{two} HodorHodor &  $\begin{bmatrix} zi_{dfg} \\ z_{v} \end{bmatrix}$ &$\begin{bmatrix} W_{11} & ert_{21} \\ cv_{31} & dfg_{41} \end{bmatrix}$ & $\begin{bmatrix} hB_{11} \\ ert_{21} \end{bmatrix}$ & $\begin{bmatrix} f_{12} \\ dfg_{22} \end{bmatrix}$ & $\begin{bmatrix} 0 \end{bmatrix}$ & f \\
    \hline
    \strut Hodor, \emph{three} HodorHodor &  $\begin{bmatrix} zi_{f} \\ z_{d} \end{bmatrix}$ &$\begin{bmatrix} W_{11} & W_{21} \\ hvgj_{31} & ee_{41} \\ ddd_{51} & zzz_{61} \end{bmatrix}$ & $\begin{bmatrix} B_{11} \\ B_{21} \\ B_{31} \end{bmatrix}$ & $\begin{bmatrix} 42_{12} \\ 12_{22} \\ W_{32} \end{bmatrix}$ &     $\begin{bmatrix} 0 \end{bmatrix}$ & g \\
    \hline      
\end{tabularx}
\label{nn-net_verror}
\end{table}

\end{document}

答案1

ThreePartTable使用和时也存在类似的问题 longtable(参见这里), 解决方案是使用\footnotemark而不是\tnote并且ThreePartTable仅用于注释。

从那时起,我发现了如何在环境\tnote之外发挥作用ThreePartTable,这将节省一些编辑工作。

应该注意的是,它\afterpage仅用于模拟 [tp] 表。它还将内容放入一个组(本地定义)。\clearpage确保表格以正确的顺序出现。

顺便说一句,我已经有一段时间没读过权力的游戏,但我相信他的名字拼写为“Hodor”。

\documentclass[11pt, oneside]{book}
\usepackage[a4paper,
            hmargin={2.5cm},
            top=2.5cm,
            bottom=3.5cm]{geometry}
\usepackage{caption}
\usepackage[table]{xcolor}
\usepackage{array, ltablex, threeparttablex}
    \newcolumntype{C}{>{\centering\arraybackslash}X}
    \setlength\extrarowheight{3pt}

%-------------------------------- show page layout, only for test
\usepackage{showframe}
\usepackage{afterpage}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
\afterpage{\clearpage
    \renewcommand{\arraystretch}{1.1}%
    \captionsetup{position=top}%
    \captionof{table}{holder holder holder holder holder holder holder holder holder holder holder holder holder holder holder holder.}
    \label{ProCons_CSM_DTM_SSM}%
    \let\TPToverlap=\TPTrlap
    \begin{tabularx}{\textwidth}{|X||*{3}{C|}}
            \hline
            & \multicolumn{3}{C|}{\textbf{Hooooolder}} \\
            \textbf{holder} & holder & holder & holder \\
            \hline \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline 
            holder & holder & holder & \cellcolor{green!25} no \tnote{2} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
            \hline  
            holder & holder & holder & \cellcolor{green!25} no \tnote{3} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder holder\\        
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{4} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
            \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{5} \\
            \hline          
            holder holder holder holder holder & holder holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\        
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline 
            holder & holder & holder & \cellcolor{green!25} no \tnote{6} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder holder holder holder & \cellcolor{green!25} holder\\                      
            \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{7} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline 
            holder & holder & holder & \cellcolor{green!25} no \tnote{8} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
            \hline  
            holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
            \hline
            \textbf{holder} & holder & holder & holder \\
            \hline \hline
            holder & holder & holder & \cellcolor{green!25} no \tnote{12} \\
            \hline          
            holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
            \hline
       \end{tabularx}
    \begin{ThreePartTable}
       \begin{tablenotes}
            \setlength\labelsep{4pt}
            \footnotesize   
            \item \textbf{Table Notes:}
            \item[1] textetxt. 
            \item[2] textetxt. 
            \item[3] textetxttextetxttextetxttextetxttextetxttextetx ttextetxt textetxt textetxttextetxttex tetxttextetxttextetxttextetxt textetxttextetxt textetxt.
            \item[4] textetxt.
            \item[5] textetxt. 
            \item[6] textetxt.
            \item[7] textetxt.
            \item[8] textetxt.  
            \item[9] textetxt.
            \item[10] textetxt. 
            \item[11] textetxt.                     
            \item[12] textetxt.
        \end{tablenotes}
    \end{ThreePartTable}%
}% end of \afterpage
\end{document}

修订版 MWE 的解决方案。我不得不用 替换ltablexlongtable“手动”计算列宽。我cellspace使用新的列类型替换了 。

注意:矩阵周围不需要加括号,但之前做过实验。我只是不想再费力去移除它们。

\documentclass[11pt, oneside]{book}

\usepackage[a4paper,
hmargin={2.5cm},
top=2.5cm,
bottom=3.5cm]{geometry}
\usepackage{amsmath}
\usepackage{bigints}
\usepackage{caption}
\usepackage{afterpage}

%------------------------------ Setting for additional table
\usepackage{array}
\usepackage{siunitx}
\usepackage{tabularx}
\renewcommand{\tabularxcolumn}[1]{>{\centering}m{#1}}

%% ---------------------------- cellspace replacement (column a only)
\newcommand{\cell}[1]% #1 = text
{\bgroup
  \sbox0{#1}\rule[\dimexpr-\dp0-\fboxsep]{0pt}{\dimexpr\ht0+\dp0+2\fboxsep}\usebox0%
\egroup}
\usepackage{collcell}
\newcolumntype{a}{>{\collectcell\cell}c<{\endcollectcell}}

\usepackage{longtable}
\usepackage[table]{xcolor}
\usepackage{threeparttablex}
\newlength{\Xcolumn}
\setlength\extrarowheight{3pt}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
%
%%-------------------------------- show page layout, only for test
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%


\begin{document}

   \afterpage{\clearpage
       \renewcommand{\arraystretch}{1.1}%
       \let\TPToverlap=\TPTrlap
       \setlength{\Xcolumn}{\dimexpr \textwidth -8\tabcolsep -6\arrayrulewidth-\doublerulesep}% compute width of X column
       \divide\Xcolumn by 4
       \begin{longtable}{|m{\Xcolumn}||*3{C{\Xcolumn}|}}
           \caption{holder holder holder holder holder holder holder     holder holder holder holder holder holder holder holder holder.}%
           \label{ProCons_CSM_DTM_SSM}
           \endfirsthead
           \hline
           & \multicolumn{3}{c|}{\textbf{Hooooolder}} \\
           \cline{2-4}
           \textbf{holder} & holder & holder & holder \\
           \hline \hline
           holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
           \hline          
           holder holder holder holder holder & holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
           \hline
           \textbf{holder} & holder & holder & holder \\
           \hline 
           holder & holder & holder & \cellcolor{green!25} no \tnote{2} \\
           \hline          
           holder holder holder holder holder & holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
           \hline  
           holder & holder & holder & \cellcolor{green!25} no \tnote{3} \\
           \hline          
           holder holder holder holder holder & holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder holder\\        
           \hline
           \textbf{holder} & holder & holder & holder \\
           \hline
           holder & holder & holder & \cellcolor{green!25} no \tnote{4} \\
           \hline          
           holder holder holder holder holder & holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
           \hline
           holder & holder & holder & \cellcolor{green!25} no \tnote{5} \\
           \hline          
           holder holder holder holder holder & holder holder &     \cellcolor{green!25} holder & \cellcolor{green!25} holder\\        
           \hline
           \textbf{holder} & holder & holder & holder \\
           \hline 
           holder & holder & holder & \cellcolor{green!25} no \tnote{6} \\
           \hline          
           holder holder holder holder holder & holder & \cellcolor{green!25} holder holder holder holder & \cellcolor{green!25} holder\\                      
           \hline
           holder & holder & holder & \cellcolor{green!25} no \tnote{7} \\
           \hline          
           holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
           \hline
           \textbf{holder} & holder & holder & holder \\
           \hline 
           holder & holder & holder & \cellcolor{green!25} no \tnote{8} \\
           \hline          
           holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
           \hline  
           holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
           \hline          
           holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\       
           \hline
           \textbf{holder} & holder & holder & holder \\
           \hline \hline
           holder & holder & holder & \cellcolor{green!25} no \tnote{12} \\
           \hline          
           holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\                       
           \hline
       \end{longtable}
       \begin{ThreePartTable}
           \begin{tablenotes}
               \setlength\labelsep{4pt}
               \footnotesize   
               \item \textbf{Table Notes:}
               \item[1] textetxt. 
               \item[2] textetxt. 
               \item[3] textetxttextetxttextetxttextetxttextetxttextetx ttextetxt textetxt textetxttextetxttex tetxttextetxttextetxttextetxt textetxttextetxt textetxt.
               \item[4] textetxt.
               \item[5] textetxt. 
               \item[6] textetxt.
               \item[7] textetxt.
               \item[8] textetxt.  
               \item[9] textetxt.
               \item[10] textetxt. 
               \item[11] textetxt.                     
               \item[12] textetxt.
           \end{tablenotes}
       \end{ThreePartTable}
   }% end of \afterpage

\begin{table}[h]
\setlength\extrarowheight{0.8pt}%
  \caption{Hodor Table}\label{nn-net_verror}
\begin{tabularx}{\textwidth}{|X||*6{a|}}
    \hline
    Hodor & Hodor & \multicolumn{2}{c|}{Hodor Hodor}& \multicolumn{2}{c|}{Hodor} & Hodor Hodor \\
    \cline{2-6}
    & $\boldsymbol{erg}$ &$\boldsymbol{gg}$ & $\boldsymbol{hh}$ & $\boldsymbol{4_111}$ & {$\boldsymbol{ns}$} & {Hodor Hodor} \\
    \hline
    \strut Hodor, \emph{two} HodorHodor & 
      {$\begin{bmatrix} JJ_{cc} \end{bmatrix}$} & 
      {$\begin{bmatrix} sdW_{11} \\ g_{21} \end{bmatrix}$} & 
      {$\begin{bmatrix} s_{11} \\ g_{21} \end{bmatrix}$} & 
      {$\begin{bmatrix} sd_{12} \\ wer_{22} \end{bmatrix}$} & 
      {$\begin{bmatrix} 0 \end{bmatrix}$} & 
      d \\
    \hline
    \strut Hodor, \emph{two} HodorHodor &  
      {$\begin{bmatrix} zi_{dfg} \\ z_{v} \end{bmatrix}$} &
      {$\begin{bmatrix} W_{11} & ert_{21} \\ cv_{31} & dfg_{41} \end{bmatrix}$} &
      {$\begin{bmatrix} hB_{11} \\ ert_{21} \end{bmatrix}$} & 
      {$\begin{bmatrix} f_{12} \\ dfg_{22} \end{bmatrix}$} &
      {$\begin{bmatrix} 0 \end{bmatrix}$} &
      f \\
    \hline
    \strut Hodor, \emph{three} HodorHodor &
      {$\begin{bmatrix} zi_{f} \\ z_{d} \end{bmatrix}$} &
      {$\begin{bmatrix} W_{11} & W_{21} \\ hvgj_{31} & ee_{41} \\ ddd_{51} & zzz_{61} \end{bmatrix}$} &
      {$\begin{bmatrix} B_{11} \\ B_{21} \\ B_{31} \end{bmatrix}$} & 
      {$\begin{bmatrix} 42_{12} \\ 12_{22} \\ W_{32} \end{bmatrix}$} &
      {$\begin{bmatrix} 0 \end{bmatrix}$} & 
      g \\
    \hline
\end{tabularx}
\end{table}

\ref{nn-net_verror}

\ref{ProCons_CSM_DTM_SSM}

\end{document}

答案2

考虑到我上面的评论,看看以下重新设计的表格是否适合您:

\documentclass[11pt, oneside]{book}
\usepackage[a4paper,
            hmargin={2.5cm},
            top=2.5cm,
            bottom=3.5cm]{geometry}
\usepackage{caption}
\usepackage[table]{xcolor}
\usepackage{array, ltablex, threeparttablex}
    \newcolumntype{C}{>{\centering\arraybackslash}X}
    \setlength\extrarowheight{3pt}

%-------------------------------- show page layout, only for test
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}

\begin{ThreePartTable}
    \begin{TableNotes}[flushleft]\footnotesize
\item \textbf{Table Notes:}
\item[1] textetxt.
\item[2] textetxt.
\item[3] textetxttextetxttextetxttextetxttextetxttextetx ttextetxt textetxt textetxttextetxttex tetxttextetxttextetxttextetxt textetxttextetxt textetxt.
\item[4] textetxt.
\item[5] textetxt.
\item[6] textetxt.
\item[7] textetxt.
\item[8] textetxt.
\item[9] textetxt.
\item[10] textetxt.
\item[11] textetxt.
\item[12] textetxt.
    \end{TableNotes}
%
    \begin{tabularx}{\textwidth}{| X || c | C | c | }
\caption{holder holder holder holder holder holder holder holder holder holder holder holder holder holder holder holder.}
\label{ProCons_CSM_DTM_SSM}                                                 \\
    \hline
                &   \multicolumn{3}{c|}{\textbf{Hooooolder}}                \\
    \cline{2-4}
\textbf{holder} &   holder  &   holder  &   holder                          \\
    \hline\hline
\endfirsthead
    \hline
                &   \multicolumn{3}{c|}{\textbf{Hooooolder}}                \\
    \cline{2-4}
\textbf{holder} &   holder  &   holder  &   holder                          \\
    \hline\hline
\endhead
    \hline
\insertTableNotes\medskip\\
    \hline
\multicolumn{4}{r}{\textit{Continue on the next page}}                     \\
\endfoot
    \hline
\insertTableNotes
\endlastfoot
% table content
holder          &   holder  &   holder  & \cellcolor{green!25} no           \\
holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
    \hline
holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\
    \hline
\textbf{holder} & holder & holder & holder \\
    \hline
holder & holder & holder & \cellcolor{green!25} no \tnote{2} \\
    \hline
holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\
    \hline
holder & holder & holder & \cellcolor{green!25} no \tnote{3} \\
    \hline
holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder holder\\
    \hline
\textbf{holder} & holder & holder & holder \\
    \hline
holder & holder & holder & \cellcolor{green!25} no \tnote{4} \\
    \hline
holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\
    \hline
holder & holder & holder & \cellcolor{green!25} no \tnote{5} \\
    \hline
holder holder holder holder holder & holder holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\
    \hline
\textbf{holder} & holder & holder & holder \\
    \hline
holder & holder & holder & \cellcolor{green!25} no \tnote{6} \\
    \hline
holder holder holder holder holder & holder & \cellcolor{green!25} holder holder holder holder & \cellcolor{green!25} holder\\
    \hline
holder & holder & holder & \cellcolor{green!25} no \tnote{7} \\
    \hline
holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\
    \hline
\textbf{holder} & holder & holder & holder \\
    \hline
holder & holder & holder & \cellcolor{green!25} no \tnote{8} \\
    \hline
holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\
    \hline
holder & holder & holder & \cellcolor{green!25} no \tnote{1} \\
    \hline
holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\
    \hline
\textbf{holder} & holder & holder & holder \\
    \hline \hline
holder & holder & holder & \cellcolor{green!25} no \tnote{12} \\
    \hline
holder holder holder holder holder & holder & \cellcolor{green!25} holder & \cellcolor{green!25} holder\\
\end{tabularx}
    \end{ThreePartTable}
\end{document}

在此处输入图片描述 在此处输入图片描述

相关内容