Latex中表格中固定表格宽度时出现错误“LaTeX Error: Illegal character in array arg.”,如下:
\documentclass{article}
\begin{document}
\begin{center}
\begin{tabular}{ | m{5em} | m{1cm}| m{1cm} | }
\hline
cell1 dummy text dummy text dummy text& cell2 & cell3 \\
\hline
cell1 dummy text dummy text dummy text & cell5 & cell6 \\
\hline
cell7 & cell8 & cell9 \\
\hline
\end{tabular}
\end{center}
\end{document}
解决这个错误很简单,就是在开头加上array包就行:\usepackage{array}。
其实这里要注意的是,如果把m换成p,那么不加这个array包也是可以的。