![Latex 中表格的 Latex 代码](https://linux22.com/image/460666/Latex%20%E4%B8%AD%E8%A1%A8%E6%A0%BC%E7%9A%84%20Latex%20%E4%BB%A3%E7%A0%81.png)
答案1
你可以试试tabularray
:
\documentclass[12pt]{article}
\usepackage[a4paper, total={180mm,257mm},left=15mm,top=20mm]{geometry}
\usepackage{tabularray}
\begin{document}
\begin{tblr}{colspec={Q[2cm,c]Q[1.5cm,c]Q[1.5cm,c]Q[1.5cm,c]Q[1.5cm,c]Q[1.5cm,c]},rows={0.7cm,m},vlines,hlines,hline{3}={solid,1pt}}
\SetCell[r=2] {m} {dim \\ $Q^{d}(B(3))$} & $u=0$ & \SetCell[c=4]{c} $u\geq 0$ \\
& $s=0$ & $s=1$ & $s=2$ & $s=3$ & $s>3$\\
$t=0$ & $1$ & $1$ & $2$ & $3$ & $4$\\
$t> 0$ & $1$ & $1$ & $2$ & $2$ & $2$\\
\end{tblr}
\end{document}