乳胶表角单元格线未显示

问题描述

我正在使用 Overleaf 撰写报告。我似乎无法获得适合右上角单元格的格式。 我也想居中“相关系数”

\begin{table}[h]
\caption{Correlation coefficient between force plate data and kinematic model data}
\label{IMUvsVB}
\begin{center}
\begin{tabular}{|c||c||c|}
\hline
\textbf{Ground reaction} & \multicolumn{2}{l}{\textbf{Correlation coefficient}} \\
\cline{2-3}
& \textbf{IMU based kinematics} & \textbf{Vision based kinematics}\\
\hline
Anteroposterior &   0.91 &  0.96\\
Mediolateral &  0.80 &  0.79\\
Vertical &  0.97 &  0.99\\
Frontal &   0.64 &  0.66\\
Sagittal &  0.91 &  0.94\\
Transverse &    0.82 &  0.84\\
\hline
\end{tabular}
\end{center}
\end{table} 

enter image description here

解决方法

替换

\textbf{Ground reaction} & \multicolumn{2}{l}{\textbf{Correlation coefficient}} \\

\textbf{Ground reaction} & \multicolumn{2}{c|}{\textbf{Correlation coefficient}} \\

\multicolumn 命令需要 3 个输入:

  • 第一个是要跨越的列数。
  • 第二个是单元格的格式(l 代表左边,c 代表中心,r 代表右边)。在这里,您还可以为单条垂直线添加 |,甚至可以为双垂直线添加 ||
  • 第三个是单元格的内容。

如果您需要更深入地了解 \multicolumn 的用法,请查看文档 here

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...