如何在矢量(和线)的上方和下方添加一些垂直空间,同时保持第二列中的两个条目垂直居中?
\documentclass{article}
\usepackage{multirow}
\usepackage{amsmath,amssymb,amsfonts,amsthm,mathrsfs}
\begin{document}
\begin{table}
\centering
\begin{tabular}{cc}
\hline
\multirow{2}{*}{ $\begin{pmatrix} 0 \\ 0 \end{pmatrix} $} & $0$ \\ & $0$ \\
\hline
\end{tabular}
\end{table}
\end{document}
答案1
使用tabularray
包很简单:
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{amsmath}
\usepackage{amssymb,amsthm,mathrsfs}
\begin{document}
\begin{table}
\centering
\begin{tblr}{hline{1,Z} = solid, % draw the first and last \hline
colspec = {*{2}{Q[c, mode=math]}}
}
\SetCell[r=2]{}
\begin{pmatrix}
0 \\ 0
\end{pmatrix} & 0 \\
& 0 \\
\end{tblr}
\end{table}
\end{document}