我怎样才能用乳胶中的索引输出这个 table ?

How can I output this table with indexes in latex?

我怎样才能像在 LaTeX 中一样输出这个 table?

我使用的是最新版本的 WindEdt 和 LaTeX。

谢谢。

我一直在尝试尽可能简单地重现完全相同的内容。

代码:

\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}

产生这个输出:

如果您需要进一步的解释,请随时发表评论。

只需使用 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}