Latex Extra alignment tab has been changed to \cr## 标题
代码
\begin{table}
\renewcommand\arraystretch{0.5}
\centering\small
\caption{表题}
\begin{tabular}{cccccccc}
\hline
\ \ & 1& 2 & 3& 4 & 5& 6&7\
\hline
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & \
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \
\hline
\end{tabular}
\end{table}
出现这样的提示,除了列数和定义的列数不一致外,还有可能是&多了或者少了,第二行“8 &”后的“&”去掉即可,修改为
\begin{table}
\renewcommand\arraystretch{0.5}
\centering\small
\caption{表题}
\begin{tabular}{cccccccc}
\hline
\ \ & 1& 2 & 3& 4 & 5& 6&7\
\hline
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & \
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \
\hline
\end{tabular}
\end{table}
Latex Extra alignment tab has been changed to \cr
最新推荐文章于 2022-04-06 13:49:46 发布