在latex中用IET提供的模板编辑表格时遇到如下错误:
Extra alignment tab has been changed to \cr.`
网上的解释是插入了额外的列,或者是因为列数与声明的不一致,在IET模板中是由于和模板的冲突
这里提供另外一条解决方案:使用 hhline
模块
\usepackage{hhline}
begin{document}
\begin{table*}[h]
\begin{tabular}{ccc}
\hline
0 & 1 & 2 \\ \hhline{~--}
0 & 1 & 2 \\
\hline
\end{tabular}
\end{table*}
\end{document}
其中 ~
代表没有线, -
代表单线
结果:
IET模板下载链接:
https://digital-library.theiet.org/files/IET_ResearchJournals_latex.zip
参考:
https://tex.stackexchange.com/questions/403712/extra-alignment-tab-has-been-changed-to-cr-problem-between-class-cta-autho