\documentclass{article}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{ragged2e}
\usepackage{longtable}
\usepackage{rotating}
\newcolumntype{R}{>{\RaggedRight\let\newline\\\arraybackslash\hspace{0pt}}X}
\usepackage{pdflscape}
\begin{document}
\begin{landscape}
\centering
\begin{longtable}{\textwidth}{|R|R|R|R|R|R|R|R|}
\hline
\textbf{Mobility Model} & \multicolumn{7}{c|}{\textbf{Parameter}} \\
\cline{2-8}
& \textbf{Basic Description}
& \textbf{Adaptability for AANETs}
& \textbf{Support to higher node mobility and Frequent topology updates}
& \textbf{Safety parameters}
& \textbf{Mechanical and aerodynamic constraint}
& \textbf{Degree of Randomness} & \textbf{Applications} \\
\hline
\end{longtable}%
\end{landscape}%
\end{document}
答案1
这是一个使用结合了和ltablex
功能的包的可能解决方案。tabularx
longtable
\documentclass{article}
\usepackage{tabularx}
\usepackage{ragged2e}
\usepackage{longtable}
\newcolumntype{R}{>{\RaggedRight\let\newline\\\arraybackslash\hspace{0pt}}X}
\usepackage{pdflscape}
\usepackage{ltablex}
\begin{document}
\begin{landscape}
\centering
\begin{tabularx}{\linewidth}{|R|R|R|R|R|R|R|R|}
\hline
\textbf{Mobility Model} & \multicolumn{7}{c|}{\textbf{Parameter}} \\
\cline{2-8}
& \textbf{Basic Description}
& \textbf{Adaptability for AANETs}
& \textbf{Support to higher node mobility and Frequent topology updates}
& \textbf{Safety parameters}
& \textbf{Mechanical and aerodynamic constraint}
& \textbf{Degree of Randomness} & \textbf{Applications} \\
\hline
\endhead
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
1\\
\end{tabularx}%
\end{landscape}%
\end{document}
请注意,所有这些1\\1\\1\\
只是为了显示表格的分页行为而添加的。我还添加了这些,\endhead
以便在所有后续页面上重复列标题。
答案2
我建议加载包并使用其同名环境,它结合了和xltabular
的可能性。另外,请注意,在环境中,对于全宽表格,您必须使用或,但不能使用。最后,您可以在加载 的单元格中获得一些空间,如果您不使用边距注释,则它具有更合理的边距,设置为较低的值(默认情况下为 6 pt,我将其设置为 3)并使用较小的字体大小。longtable
tabularx
landscape
\linewidth
\textheight
\textwidth
geometry
\tabcolsep
\documentclass{article}
\usepackage{geometry}
\usepackage{tabularx}
\usepackage{xltabular}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{ragged2e}
\usepackage{longtable}
\usepackage{rotating}
\renewcommand{\tabularxcolumn}[1]{>{\RaggedRight\arraybackslash}m{#1}}
\usepackage{pdflscape}
\begin{document}
\begin{landscape}
\setlength{\tabcolsep}{3pt}
\setlength{\extrarowheight}{3pt}
\centering
\begin{xltabular}{\linewidth}{|*{8}{X|}}
\hline
\multirow{8.45}{=}{\textbf{Mobility Model} }& \multicolumn{7}{c|}{\textbf{Parameter}} \\
\cline{2-8}
& \textbf{Basic Description}
& \textbf{Adaptability for AANETs}
& \textbf{Support to higher node mobility and Frequent topology updates\smallskip}
& \textbf{Safety parameters}
& \textbf{Mechanical and aerodynamic constraint}
& \textbf{Degree of Randomness} & \textbf{Applications} \\
\hline
\end{xltabular}%
\end{landscape}%
\end{document}