如何将我的表格分成两页?

如何将我的表格分成两页?

我不知道如何将我的表格分成两页!我试过longtable打包,但没用。

我的表包含很多行。

    \documentclass[12pt]{report}
    \usepackage[utf8]{inputenc} 
    \usepackage[T1]{fontenc} 

    \usepackage{booktabs}
    \usepackage{tabularx}
    \usepackage{adjustbox}
    \usepackage{multirow}
    \begin{document}

    \begin{table}[htbp]
    \centering
    \begin{tabularx}{\linewidth}{|l|X|X|X|}
     \hline % horizontal line and | for vertical line %
     \multicolumn{1}{|c|}{\textbf{characteristics}}         & \multicolumn{1}{c|}{\textbf{sub-characteristics}}&\multicolumn{1}{c|}{\textbf{metrics}} &\multicolumn{1}{c|}{\textbf{citation}}
         \tabularnewline\hline \hline 

    \multirow{ 6}{*}{Effectiveness(hight)} & 
        -Minimal memory load(low) &&  QUIM model 
        &\ &
         -Minimal memory load(low) && QUIM model
         &\ &
         -Minimal memory load(low) &&
         &\ &
         -Minimal memory load(low) &&
         &\ &
         -Minimal memory load(low) &&
         &\ &
        -Minimal memory load(low) &&
         &\ &
         -Minimal memory load(low) &&QUIM&
        \tabularnewline\hline

    \multirow{ 7}{*}{Satisfaction}& -Attractiveness & &QUIM model
        &\ & 
        -Attractiveness & &QUIM model 
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & & &

        \tabularnewline\hline


       \multirow{ 8}{*}{ efficiency(hight)}& -Minimal memory load(low) & &  QUIM model
        & \ &
        -Minimal memory load(low) & &QUIM 
        & \ &
        -Minimal memory load(low) & &QUIM
        &\ &
       -Minimal memory load(low) & &QUIM
        & \ &
        -Minimal memory load(low) & &QUIM
        & \ &
        -Minimal memory load(low) & & QUIM
        & \ & 
        -Minimal memory load(low) & & QUIM
        & \ &
        -Minimal memory load(low) & &QUIM &
        \tabularnewline\hline

       \multirow{ 2}{*}{User error protection} & & & &
        \tabularnewline\hline 

       \multirow{ 11}{*}{ Usefulness} &&&
       &\ &
       -Flexibility && 
       &\ &
        -Flexibility && 
       &\ &
        -Flexibility &&
       &\ &
        -Flexibility &&
       &\ &
        -Flexibility &&
       &\ &
       -Flexibility &&
       &\ &
        -Flexibility &&
       &\ &
        -Flexibility &&
       &\ &
        -Flexibility &&
       &\ &
        -Flexibility && QUIM & 
            \tabularnewline\hline

        \multirow{ 7}{*}{Satisfaction}& -Attractiveness & &QUIM model
        &\ & 
        -Attractiveness & &QUIM model 
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & & &

        \tabularnewline\hline
        \multirow{ 7}{*}{Satisfaction}& -Attractiveness & &QUIM model
        &\ & 
        -Attractiveness & &QUIM model 
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & & &

        \tabularnewline\hline
        \multirow{ 7}{*}{Satisfaction}& -Attractiveness & &QUIM model
        &\ & 
        -Attractiveness & &QUIM model 
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & & &

        \tabularnewline\hline

\multirow{ 7}{*}{Satisfaction}& -Attractiveness & &QUIM model
        &\ & 
        -Attractiveness & &QUIM model 
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & & &

        \tabularnewline\hline

\multirow{ 7}{*}{Satisfaction}& -Attractiveness & &QUIM model
        &\ & 
        -Attractiveness & &QUIM model 
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & &
        & \ &
        -Attractiveness & & &

        \tabularnewline\hline


     \end{tabularx} 
      \caption{A list of usability criteria }
    \label{table:usability criteria}   
    \end{table} 
    \end{document}

答案1

这是将您的代码转换为适合环境的代码的非常不完美的尝试longtable。我说“非常不完美”是因为我必须做出很多设计决定,例如 (a) 如何处理所有“ ”实例& \ &和 (b) 为四列分配相等的宽度。我还删除了所有\multirow包装器。

下面的截图只显示了前几行longtable

在此处输入图片描述

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[letterpaper,margin=1in]{geometry} % set page parameters appropriately

\usepackage{booktabs,longtable,array,ragged2e}
\newlength\mylen
\setlength{\mylen}{\dimexpr0.25\textwidth-1.5\tabcolsep}
\newcolumntype{P}{>{\RaggedRight\arraybackslash}p{\mylen}}
\begin{document}

\begin{longtable}{@{} *{4}{P} @{}}
\caption{A list of usability criteria } \label{tab:criteria}
\label{table:usability criteria}\\
\toprule 
\textbf{Characteristics} & 
\textbf{Subcharacter\-istics}&
\textbf{Metrics} &
\textbf{Citation} \\
\midrule
\endfirsthead

\multicolumn{4}{c}{Table \ref{tab:criteria}, cont'd}\\
\addlinespace
\toprule 
\textbf{Characteristics} & 
\textbf{Subcharacter\-istics}&
\textbf{Metrics} &
\textbf{Citation} \\
\midrule
\endhead

\midrule
\endfoot
\bottomrule
\endlastfoot


     Effectiveness (height) & 
     -Minimal memory load (low) &&  QUIM model 
     \\
     &-Minimal memory load (low) && QUIM model
     \\
     &-Minimal memory load (low) &
     \\
     &-Minimal memory load (low) &
     \\
     &-Minimal memory load (low) &
     \\
     &-Minimal memory load (low) &
     \\
     &-Minimal memory load (low) &&QUIM
     \\
     \midrule

    Satisfaction & -Attractiveness & &QUIM model
    \\ 
    &-Attractiveness & &QUIM model 
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & & 

    \\
    \midrule

    Efficiency (height) 
    & -Minimal memory load (low) & &  QUIM model
    \\
    &-Minimal memory load (low) & &QUIM 
    \\
    &-Minimal memory load (low) & &QUIM
    \\
    &-Minimal memory load (low) & &QUIM
    \\
    &-Minimal memory load (low) & &QUIM
    \\
    &-Minimal memory load (low) & & QUIM
    \\ 
    &-Minimal memory load (low) & & QUIM
    \\
    &-Minimal memory load (low) & &QUIM 
    \\
    \midrule

    User error protection 
    \\
    \midrule 

    Usefulness
    &-Flexibility && 
    \\
    &-Flexibility && 
    \\
    &-Flexibility &&
    \\
    &-Flexibility &&
    \\
    &-Flexibility &&
    \\
    &-Flexibility &&
    \\
    &-Flexibility &&
    \\
    &-Flexibility &&
    \\
    &-Flexibility &&
    \\
    &-Flexibility && QUIM 
    \\
    \midrule

    Satisfaction& -Attractiveness & &QUIM model
    \\ 
    &-Attractiveness & &QUIM model 
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    \midrule

    Satisfaction& -Attractiveness & &QUIM model
    \\ 
    &-Attractiveness & &QUIM model 
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    \midrule

    Satisfaction& -Attractiveness &&QUIM model
    \\ 
    &-Attractiveness & &QUIM model 
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & & 
    \\
    \midrule

    Satisfaction& -Attractiveness & &QUIM model
    \\ 
    &-Attractiveness & &QUIM model 
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & &
    \\
    &-Attractiveness & & 
    \\

\end{longtable}
\end{document}

相关内容