用到的包:
\usepackage{booktabs} % 设置加粗的表格线
\usepackage{threeparttable} % 给表格添加注释
\usepackage{multirow} % 合并表格中的单元格
\usepackage{diagbox} % 添加斜线表头
\usepackage{array} % 需要该宏包 设置表单元格的高度
\usepackage{caption} % 设置表格标题居中,单元格内容居左等
\usepackage{colortbl}
\usepackage{longtable} % 跨页(长)表格
\usepackage{amsmath,amssymb} % 数学常用环境的汉化
\usepackage{mathrsfs}
\usepackage{IEEEtrantools}
===== 分割线 =============
代码:
\begin{center}
\renewcommand\arraystretch{2} % 设置高度
\begin{longtable}{|c|c|l|r|l|l|}
\caption{test} \label{tab:5.1} \\
\hline \hline
A & B & \multicolumn{1}{c|}{C} & \multicolumn{1}{c|}{D} & \multicolumn{1}{c|}{E} & \multicolumn{1}{c|}{F} \\ \hline \hline
\endfirsthead
\caption[]{(continued)} \\
\hline \hline
A & B & \multicolumn{1}{c|}{C} & \multicolumn{1}{c|}{D} & \multicolumn{1}{c|}{E} & \multicolumn{1}{c|}{F} \\ \hline \hline
\endhead
\hline
% This & goes& at& the& bottom.& & \\
\hline
\endfoot
\hline
% These lines& will appear& in place& of the usual& foot at the& end of& the table \\
\hline
\endlastfoot
\multirow{4}{*}{ \begin{IEEEeqnarraybox}{s.t} % {居左,居中}
$a = a+e$ & $d = e$ \\
$b = c$ & $s = f$
\end{IEEEeqnarraybox}
} & 1 & $\gamma$ & $\alpha$ & ABC & \\ \cline{2-6}
& 2 & $\alpha $ & $\alpha$ & ER & \\ \cline{2-6}
& 3 & $\alpha $ & $\alpha$ & ER & \\ \cline{2-6}
& 4 & $\alpha$ & $\alpha$ & WE &
$\begin{pmatrix}
1.2 &1.6096 &0 \\
1.6096 & 2.3651 &0 \\
0 & 0 & 1.6805
\end{pmatrix}$ \\ \cline{2-6}
\end{longtable}
\end{center}
% 不能直接在表格中插入文本中的那种多行公式。
% 说明:表格中嵌入多行公式:原则是表格中再放入表格,如上面 \begin{IEEEeqnarraybox} 一种表格;\begin{matrix} % matrix系列 也是一种表格,它们可以直接放在表格中。
效果: