2015-05-27 37 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}