今天用LaTex画表的时候报错了
画三线表代码如下
\begin{table}
\centering
\resizebox{8.6cm}{24mm}{ % 缩放表格大小,变的字大小
\begin{tabular}{cccccccc}
\toprule[1.5pt] %线宽
Scenario & $\delta$ (s) & Runtime (ms) \\
\midrule[1pt]
Paris & 0.1 & 13.65 \\
& 0.2 & 0.01 \\
\textit{New York} & 0.1 & 92.50 \\ % 斜体
Singapore & \textbf{0.1} & \textbf{33.33} \\ % 加粗
& 0.2 & 23.01 \\
\bottomrule[1.5pt]
\end{tabular}
}
\caption{Errors on MNIST(M) and CIFAR10(C) Datasets.}
\label{tab:booktabs}
\end{table}
解决:
把m改成l(小写的L但是一般不会左对齐的表格把)或者c就可以了(c也可以居中)
结果如图: