2015-05-27 36 views

回答

0

我一直试图重现完全一样,尽可能简单。

代码:

\documentclass{article} 

\begin{document} 

%\begin{table} 
\begin{tabular}{|c|c|c|c|c|c} 
\multicolumn{1}{c}{ } & \multicolumn{1}{c}{ } & \multicolumn{1}{c}{ } & % 
\multicolumn{1}{c}{X2} & \multicolumn{1}{c}{ } & \multicolumn{1}{c}{ }\\ 
\cline{1-5} 
\textbf{12} & \textbf{9} & \textbf{4} & \textbf{0} & \textbf{7} & X3\\ 
\cline{1-5} 
\textbf{11} & \textbf{10} & \textbf{5} & 0 & \textbf{5} & X1\\ 
\cline{1-5} 
7 & 9 & 9 & 6 & \textbf{0} & \\ 
\cline{1-5} 
\textbf{0} & 3 & 10 & \textit{13} & 9 & \\ 
\cline{1-5} 
5 & \textbf{0} & 0 & \textit{4} & 9 & \\ 
\cline{1-5} 
\end{tabular} 
%\end{table} 

\end{document} 

产生这样的输出:

screenshot of output pdf

不要犹豫,如果您需要进一步的解释做出评论。

0

只要使用tabular与6列和命令\multicolumn控制竖线:

\begin{tabular}{|c|c|c|c|c|c} 
    \multicolumn{3}{c}{} & \multicolumn{1}{c}{X2} \\ 
    \cline{1-5} 
    12 & 9 & 4 & 0 & 7 & X3\\ 
    \cline{1-5} 
    % and so on ... 
\end{tabular}