表格真的很大,我无法将其放在一页中,请帮忙!

表格真的很大,我无法将其放在一页中,请帮忙!

我有这张表,但我放不下它,我试过使用adjustboxresize但一页放不下所有内容。请帮忙!

\begin{table}[h]
\centering
\caption{My caption}
\label{my-label}
\begin{tabular}{@{}llllll@{}}
\toprule
\multicolumn{3}{l}{\multirow{2}{*}{}}                                      &      \multicolumn{3}{l}{Graph Size} \\ \cmidrule(l){4-6} 
\multicolumn{3}{l}{}                                                       &      50       & 100      & 150      \\ \midrule
\multirow{24}{*}{T = 5}  & \multirow{6}{*}{Lambda = 0}   & Model 1 Alpha   &               &          &          \\ \cmidrule(l){3-6} 
                           &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 1}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 10}  & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 100} & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \midrule
 \multirow{24}{*}{T = 10} & \multirow{6}{*}{Lambda = 0}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 1}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 10}  & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 100} & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \midrule
  \multirow{24}{*}{T = 15} & \multirow{6}{*}{Lambda = 0}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 1}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 10}  & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 100} & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \bottomrule
\end{tabular}
 \end{table}    

答案1

您必须重新设计表格。现在,您正在重复很多东西。如果这确实是表格的最终布​​局,您可以这样做:

% arara: pdflatex

\documentclass{article}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{caption}
\usepackage{rotating}
\usepackage{siunitx}

\begin{document}
    \begin{sidewaystable}
        \centering
        \caption{My caption}
        \label{tab:my-label}
        \begin{tabular}{*{3}{l}S[table-format=2.0]*{2}{S[table-format=3.0]}lS[table-format=2.0]*{2}{S[table-format=3.0]}lS[table-format=2.0]*{2}{S[table-format=3.0]}}
            \toprule
                                          &                 & \multirow{2}{*}{$T = 5$} & \multicolumn{3}{l}{Graph Size} & \multirow{2}{*}{$T = 10$} & \multicolumn{3}{l}{Graph Size} & \multirow{2}{*}{$T = 15$} & \multicolumn{3}{l}{Graph Size} \\ 
            \cmidrule(lr){4-6} \cmidrule(lr){8-10} \cmidrule(l){12-14}
                                          &                 &          & 50       & 100 & 150 & & 50 & 100 & 150 & & 50 & 100 & 150 \\ 
            \midrule
            \multirow{6}{*}{Lambda = 0}   & Model 1 Alpha   &          &          &&&&&&&&&&          \\  
                                          & Model 2 Alpha   &          &          &&&&&&&&&&          \\  
                                          & Model 3 Alpha   &          &          &&&&&&&&&&          \\  
                                          & Model 1 Initial &          &          &&&&&&&&&&          \\ 
                                          & Model 2 Initial &          &          &&&&&&&&&&          \\ 
                                          & Model 3 Initial &          &          &&&&&&&&&&          \\ 
            \midrule 
            \multirow{6}{*}{Lambda = 1}   & Model 1 Alpha   &          &          &&&&&&&&&&          \\ 
                                          & Model 2 Alpha   &          &          &&&&&&&&&&          \\ 
                                          & Model 3 Alpha   &          &          &&&&&&&&&&          \\ 
                                          & Model 1 Initial &          &          &&&&&&&&&&          \\ 
                                          & Model 2 Initial &          &          &&&&&&&&&&          \\ 
                                          & Model 3 Initial &          &          &&&&&&&&&&          \\ 
            \midrule 
            \multirow{6}{*}{Lambda = 10}  & Model 1 Alpha   &          &          &&&&&&&&&&          \\ 
                                          & Model 2 Alpha   &          &          &&&&&&&&&&          \\ 
                                          & Model 3 Alpha   &          &          &&&&&&&&&&          \\ 
                                          & Model 1 Initial &          &          &&&&&&&&&&          \\ 
                                          & Model 2 Initial &          &          &&&&&&&&&&          \\ 
                                          & Model 3 Initial &          &          &&&&&&&&&&          \\ 
            \midrule 
            \multirow{6}{*}{Lambda = 100} & Model 1 Alpha   &          &          &&&&&&&&&&          \\
                                          & Model 2 Alpha   &          &          &&&&&&&&&&          \\
                                          & Model 3 Alpha   &          &          &&&&&&&&&&          \\ 
                                          & Model 1 Initial &          &          &&&&&&&&&&          \\
                                          & Model 2 Initial &          &          &&&&&&&&&&          \\
                                          & Model 3 Initial &          &          &&&&&&&&&&          \\
            \bottomrule
        \end{tabular}
    \end{sidewaystable}    
\end{document}

或类似的东西。

在此处输入图片描述

答案2

基于@LaRiFaRi的观察,删除大量重复内容是可能的(也是非常可取的),下面是对你的表格进行更深层次的重组。它可以以纵向模式显示。

在此处输入图片描述

\documentclass{article}
\usepackage{booktabs,caption}

\begin{document}
\begin{table}
\centering
\caption{My caption} \label{tab:my-label}
\begin{tabular}{@{} ll *{9}{c} @{}}
    \toprule
    Lambda & Model &  \multicolumn{9}{c@{}}{$T$}\\
    \cmidrule(l){3-11}
    && \multicolumn{3}{c}{5} 
     & \multicolumn{3}{c}{10} 
     & \multicolumn{3}{c@{}}{15} \\
    \addlinespace
    && \multicolumn{3}{c}{Graph Size} 
     & \multicolumn{3}{c}{Graph Size} 
     & \multicolumn{3}{c@{}}{Graph Size} \\
    \cmidrule(lr){3-5} \cmidrule(lr){6-8} \cmidrule(l){9-11}
    &&  50 & 100 & 150 & 50 & 100 & 150 & 50 & 100 & 150 \\
    \midrule
    0 & 1 Alpha    &&&&&&&&& \\
      & 2 Alpha    &&&&&&&&& \\
      & 3 Alpha    &&&&&&&&& \\
      & 1 Initial  &&&&&&&&& \\
      & 2 Initial  &&&&&&&&& \\
      & 3 Initial  &&&&&&&&& \\
    \midrule
    1 & 1 Alpha    &&&&&&&&& \\
      & 2 Alpha    &&&&&&&&& \\
      & 3 Alpha    &&&&&&&&& \\
      & 1 Initial  &&&&&&&&& \\
      & 2 Initial  &&&&&&&&& \\
      & 3 Initial  &&&&&&&&& \\
    \midrule
    10 & 1 Alpha    &&&&&&&&& \\
       & 2 Alpha    &&&&&&&&& \\
       & 3 Alpha    &&&&&&&&& \\
       & 1 Initial  &&&&&&&&& \\
       & 2 Initial  &&&&&&&&& \\
       & 3 Initial  &&&&&&&&& \\
    \midrule
    100 & 1 Alpha    &&&&&&&&& \\
        & 2 Alpha    &&&&&&&&& \\
        & 3 Alpha    &&&&&&&&& \\
        & 1 Initial  &&&&&&&&& \\
        & 2 Initial  &&&&&&&&& \\
        & 3 Initial  &&&&&&&&& \\
    \bottomrule
\end{tabular}
\end{table}
\end{document} 

答案3

您可以通过最小化边距和字体大小来实现这一点,这里我们使用\tiny

\documentclass{article}%
\usepackage[margin=5mm]{geometry}
\usepackage{booktabs}
\usepackage{multirow}
\renewcommand{\arraystretch}{0.8}
\begin{document}%
\begin{table}[h]
\centering\tiny
\caption{My caption}
\label{my-label}
\begin{tabular}{@{}llllll@{}}
\toprule
\multicolumn{3}{l}{\multirow{2}{*}{}}                                      &      \multicolumn{3}{l}{Graph Size} \\ \cmidrule(l){4-6} 
\multicolumn{3}{l}{}                                                       &      50       & 100      & 150      \\ \midrule
\multirow{24}{*}{T = 5}  & \multirow{6}{*}{Lambda = 0}   & Model 1 Alpha   &               &          &          \\ \cmidrule(l){3-6} 
                           &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 1}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 10}  & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 100} & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \midrule
 \multirow{24}{*}{T = 10} & \multirow{6}{*}{Lambda = 0}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 1}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 10}  & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 100} & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \midrule
  \multirow{24}{*}{T = 15} & \multirow{6}{*}{Lambda = 0}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 1}   & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 10}  & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \cmidrule(l){2-6} 
                     & \multirow{6}{*}{Lambda = 100} & Model 1 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Alpha   &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 1 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 2 Initial &          &          &          \\ \cmidrule(l){3-6} 
                     &                               & Model 3 Initial &          &          &          \\ \bottomrule
\end{tabular}
 \end{table}    
\end{document}%

输出

在此处输入图片描述

相关内容