在\tabular环境中如何使\multirow中内容如何垂直对齐(居中)?
如图所示,红色框中的BC、CD如何垂直方向对齐,即竖直方向居中??
如图所示,红色框中的BC、CD如何垂直方向对齐,即竖直方向居中?
附上MWE~
```tex
\documentclass[]{article}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{table}[!h]
\centering
\caption{ABC}
\begin{tabular}{@{}ccccccccc@{}}
\toprule
\multirow{2}{*}{BC} & \multirow{2}{*}{CD} & \multicolumn{3}{c}{CF~[100]} & \multicolumn{3}{c}{HG~[010]}\\ \cmidrule[0.05em](lr){3-5} \cmidrule[0.05em](l){6-8}
& & $x$ & $y$ & $z$ & $x$ & $y$ & $z$ \\ \midrule
1 & $f_x$ & 1 & 0 & 0 & 0 & 1 & 0 \\[5pt]
2 & $g_{xy}$ & 5 & 3 & 15 & 5 & 6 & 30 \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
```
一周热门 更多>