隐藏页面下方表格中的大量行

隐藏页面下方表格中的大量行

我创建了一个包含超过 25 行的表格,但有些行在页面末尾被隐藏。我如何让它自动将某些行放在下一页?

这是我使用的表的类型:

\documentclass{article}

% Language setting
% Replace `english' with e.g. `spanish' to change the document language
\usepackage[english]{babel}
\usepackage{longtable}
\usepackage{graphicx}

% Set page size and margins
% Replace `letterpaper' with `a4paper' for UK/EU standard size
\usepackage[letterpaper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}

% Useful packages
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorlinks=true, allcolors=blue]{hyperref}

\title{paper}
\author{Authors}

\begin{document}
\begin{table}
\caption{\label{demo-table} Summary of the models that are investigated in Section 3.}
\scalebox{0.8}{
\centering
\begin{tabular}{ |p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}| }
\hline

\hline
\centering Model& \centering Year & \centering Input & \centering Architecture(s) & \centering Backbone(s)  & Dataset(s) \\
\hline
Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline
Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline
Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

Multi-branch \cite{ref} & 2018 & RGB Video Frames,RGB Video Frames,RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\

\hline

\end{tabular}}
\end{table}
\end{document}

答案1

很难说,因为您没有展示完整的可编译文档,而且我们不知道您的页面大小或所有单元格中文本的宽度。但是,这可能是一种使用包longtblr中的环境的方法tabularray

\documentclass{article}
\usepackage{lipsum} % dummy text
\usepackage{tabularray}

\begin{document}
\lipsum[1-3] See table \ref{demo-table} below.
\begin{longtblr}
[% caption and label
   caption={Summary of the models that are investigated in Section 3.},
   label={demo-table}   
]
{% format
   colspec={XX[0.5]X[2]X[1.3]XX},
   hlines,vlines,
   rowhead=1,
   cells={font=\footnotesize}
}% content
Model & Year & Input & Architecture(s) & Backbone(s) & Dataset(s)\\
Multi-branch \cite{ref} & 2018 & RGB Video Frames, RGB Video Frames, RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\
Multi-branch \cite{ref} & 2018 & RGB Video Frames, RGB Video Frames, RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\
Multi-branch \cite{ref} & 2018 & RGB Video Frames, RGB Video Frames, RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\
Multi-branch \cite{ref} & 2018 & RGB Video Frames, RGB Video Frames, RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\
Multi-branch \cite{ref} & 2018 & RGB Video Frames, RGB Video Frames, RGB Video Frames & CNN & C3D &  DR(eye)VE, DR(eye)VE, DR(eye)VE\\
\end{longtblr}

\lipsum[2]
\end{document}

它看起来像这样(我剪掉了图片中的边距以免浪费空间)。 在此处输入图片描述

相关内容