1. 构造一个多行合并的表格
在开头需要加上:\usepackage{multirow}
\begin{table}[htb]
\centering\begin{tabular}{c|c|c}
\hline
%&m $\setminus$ $\alpha$ &0.25 &0.10 &0.05 &0.025 &0.01\\
&inputs &unit\\
\hline
\multirow{8}*{Ship-environment status} &$surge\_vel$ &m/s\\
~ &$sway\_vel$ &m/s \\~ &$yaw\_vel$ °/s \\
~ &$roll\_vel$ °/s \\
~ &$pitch\_vel$ °/s \\
~ &$roll$ ° \\
~ &$pitch$ ° \\
~ &heading °\\
\end{tabular}
\caption{\footnotesize{The meaning of input factors}}
\label{tab:tab1}
\end{table}
\begin{table}[htb]
\centering
\caption{{The result of four statistic tests using different measuring manners}}
\begin{tabular}{cc|c|c|c|}
\hline
& &mean &max &min \\
\hline
&K-AD & \multicolumn{3}{|c|}{ $x_2\rightarrow x_1\rightarrow x_3$} \\
\hline
&KS & \multicolumn{3}{|c|}{ $x_2\rightarrow x_1\rightarrow x_3$} \\
\hline
&Euclidean & \multicolumn{3}{|c|}{ $x_2\rightarrow x_1\rightarrow x_3$} \\
\hline
&Friedman & \multicolumn{2}{|c|}{ $x_2\rightarrow x_1\rightarrow x_3$}& $x_1\rightarrow x_2\rightarrow x_3$ \\
\hline
\end{tabular}
\label{tab:tab2}
\end{table}
2.其他表格行列合并的情况请参照:点击进入
3 设置表格固定宽度
\documentclass[a4paper,UTF8]{article}\usepackage{ctex}\usepackage{array}
%需要该宏包\begin{document}
\begin{table}[h]\centering \begin{tabular}
{|p{1cm}|p{2cm}<{\centering}|p{3cm}<{\centering}|}\hlinea & b & c
\\ \hlined & e & f\\\hlineg&g&i\\\hlinej
& k & l\\\hline\end{tabular}\
caption{my table}
\end{table}
\end{document}