我是 Latex 初学者。如果我使用 tabularx,我无法将表格拆分为多个页面。
\begin{table}[h!]
\centering
\caption{Summarized Analysis of Structured, OO, ADL \& WSO Approach}
\begin{tabularx}{\textwidth}{|X|X|X|X|X|}
\hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\end{tabularx}
\label{table:Summarized_Analysis_of_Structured_OO_ADL_WSO_Approach}
\end{table}
答案1
嗯,一种可能性是使用
\usepackage{xltabular}
能够使用包longtable
和的组合tabularx
。
然后,重要的是您必须为不同的页面重新定义表格的页眉和页脚,如下所示:
\caption{Summarized Analysis of Structured, OO, ADL \& WSO Approach}%
\label{table:Summarized_Analysis_of_Structured_OO_ADL_WSO_Approach}\\
\hline
\textbf{Header 1} & hHeader 2. & Header 3 & Header 4 \\
\hline
\endfirsthead
\hline
\textbf{Header 1} & hHeader 2. & Header 3 & Header 4 \\
\hline
\endhead
\hline
\endfoot
然后你开始你的餐桌
\begin{xltabular}{\textwidth}{|X|X|X|X|X|}
具有以下完整 mwe
\documentclass[a4paper]{article}
\usepackage[showframe]{geometry} % <================ showframe to visualize typing area and margins
\usepackage{xltabular} % <==============================================
\begin{document}
\begin{xltabular}{\textwidth}{|X|X|X|X|X|} % <==========================
%\centering
\caption{Summarized Analysis of Structured, OO, ADL \& WSO Approach}%
\label{table:Summarized_Analysis_of_Structured_OO_ADL_WSO_Approach}\\
\hline
\textbf{Header 1} & hHeader 2. & Header 3 & Header 4 \\
\hline
\endfirsthead
\hline
\textbf{Header 1} & hHeader 2. & Header 3 & Header 4 \\
\hline
\endhead
\hline
\endfoot
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ \hline
\textbf{Complete \& Clear Requirements} & hjhjhjhjhjhj hjhjhjhjjjjjjjj jjjjjjjjjjjjjjjjj. & jhjhjhj hjhjhjhjh jhjhjhjhjhjhjhjhjhhjhj hjhjjjjhjh. &
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \\ %\hline
\end{xltabular}
\end{document}
你得到了结果
对于第 1 页,第 1 页末尾有一小块空白(见红色箭头 3),因为下一行的长度超过了可用空间……第 2 页
如果需要的话,您还可以在\endhead
表格继续的部分添加注释,或者在\endfoot
表格继续的部分添加注释,然后添加\endlastfoot
不带注释的部分...这取决于您的需要...