複数行と複数列を一緒に使用することはできません

複数行と複数列を一緒に使用することはできません

複数行を複数列で使用することはできません。次のコードでは、コンテンツを含む2つの高さの行を作成することを目指しています。縦に2列に並んだ長いヘッダー、ここで何が欠けているのでしょうか?

\begin{table*}
\centering 
\newcolumntype{C}{>{\centering\arraybackslash}X}
\begin{tabularx}{\linewidth}{|l|C|C|C|C|C|C|}
\hline
\bf{} & \multirow{2}{*}{\bf{Value}} & \multirow{2}{*}{\bf{Value}} & \bf{Some Value} & \bf{ome Value} & \multirow{2}{*}{\bf{ome Value}} & \multirow{2}{*}{\bf{Value}}
\\ \hline
\multicolumn{7}{|c|}{\multirow{2}{*}{A long header vertically centered in two rows}}
\\ \hline
\bf{Row header} & 12.34 & 12.34 & 12.34 & 12.34 & 12.34 & 12.34
\\ \hline
\end{tabularx} 
\caption{Table results}
\label{results} 
\end{table*} 

答え1

multirow仕組みを読んでみてください

\begin{table*}
\centering 
\newcolumntype{C}{>{\centering\arraybackslash}X}
\begin{tabularx}{\linewidth}{|l|C|C|C|C|C|C|}
\hline
\textbf{} & \multirow{2}{*}{\textbf{Value}} & \multirow{2}{*}{\textbf{Value}} & \textbf{Some Value} & \textbf{ome Value} & \multirow{2}{*}{\textbf{ome Value}} & \multirow{2}{*}{\textbf{Value}}
\\ \hline
\multicolumn{7}{|c|}{\multirow{2}{*}{A long header vertically centered in two rows}}
\\ \multicolumn{7}{|c|}{} % add
\\ \hline
\textbf{Row header} & 12.34 & 12.34 & 12.34 & 12.34 & 12.34 & 12.34
\\ \hline
\end{tabularx} 
\caption{Table results}
\label{results} 
\end{table*} 

関連情報