表格代码需要像附图那样吗?

表格代码需要像附图那样吗?

我尝试创建一个带有颜色的表格,如下所示:

在此处输入图片描述

我尝试编写以下乳胶:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}

\makeatletter
\providecommand{\tabularnewline}{\\}

\makeatother

\usepackage{babel}
\begin{document}
\begin{table}
\caption{Test}
\centering{}%
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|}
\cline{3-12} 
\multicolumn{1}{c}{} &  & \multicolumn{2}{c|}{ System1} & \multicolumn{2}{c|}{System2} & \multicolumn{2}{c|}{System3} & \multicolumn{2}{c|}{System4} & \multicolumn{2}{c|}{System5}\tabularnewline
\cline{2-12} 
\multicolumn{1}{c|}{} & Weightage & Rating & Weighted Rating  & Rating & Weighted Rating & Rating & Weighted Rating & Rating & Weighted Rating & Rating & Weighted Rating\tabularnewline
\hline 
Volume Utilization & 0.3 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1\tabularnewline
\hline 
Complexity & 0.2 & 2 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1\tabularnewline
\hline 
Controllability & 0.2 & 2 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1\tabularnewline
\hline 
Thrust and Power & 0.3 & 3 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1\tabularnewline
\hline 
Bi-Direc. & 0.2 & 2 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1\tabularnewline
\hline 
Size  & 0.3 & 2 & 1 & \multicolumn{1}{c|}{1} & 1 & 1 & 1 & 1 & 1 & 1 & 1\tabularnewline
\hline 
\multicolumn{1}{c|}{} & \multicolumn{2}{c|}{Total Weighted Score} & 2 &  & 3 &  & 3 &  & 1 &  & 2\tabularnewline
\cline{2-4} \cline{6-6} \cline{8-8} \cline{10-10} \cline{12-12} 
\end{tabular}
\end{table}

\end{document}

有任何帮助吗?谢谢!

相关内容