答案1
太期待评论了...
你喜欢实现第一张还是第二张图像?
对于这两者我都使用以下 MWE:
\documentclass{article}
\usepackage{xcolor}
\usepackage{tabularray}
\begin{document}
\begin{center}
\begin{tblr}{vline{2} = {2-Z}{solid},
colspec={X[l] X[l, bg=gray!30]},
row{1} = {font=\bfseries, c}
}
\hline
text & \SetCell{bg=white} text \\
\hline
1 & 20 20 \\
10 10 & 15 15 \\
1 & 59 41 \\
\hline
\end{tblr}
\bigskip
\begin{tblr}{vline{2} = {2-Z}{solid},
colspec={X[l] X[l]},
row{1} = {font=\bfseries, c}
}
\hline
text & text \\
\hline
1 & 20 20 \\
10 10 & 15 15 \\
1 & \SetCell{bg=gray!30}
59 41 \\
10 5 & 11 31 153 \\
2 & \\
\hline
\end{tblr}
\end{center}
\end{document}