用到的包:
\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系列 也是一種表格,它們可以直接放在表格中。
效果: