我的乳胶表无法正常工作

我的乳胶表无法正常工作

我正在尝试解决这个问题,但一直出现无法消除的错误。但是代码运行良好,每次更改后都可以编译。

错误:

Missing $ inserted.
                $
l.6  \# & \Leftarrow
                     & cell3 & Cel \\
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

! Extra }, or forgotten $.
 \unskip \hfil }
                          \hskip \tabcolsep \hskip -.5\arrayrulewidth \vrule...
l.6  \# & \Leftarrow &
                       cell3 & Cel \\
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.

Missing $ inserted.
                $
l.6  \# & \Leftarrow &
                       cell3 & Cel \\
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

! Missing } inserted.
<inserted text> 
                }
l.6  \# & \Leftarrow &
                       cell3 & Cel \\
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

我的代码如下:

\begin{center}
\begin{tabular}{ |c|c|c|c| } 
 \hline
 \# & \Leftarrow & cell3 & Cel \\ 
 cell2 & cell5 & cell6 \\ 
 cell7 & cell8 & cell9 \\ 
 \hline
\end{tabular}
\end{center}

答案1

您需要使用数学模式插入与数学相关的内容。也就是说,使用

$\Leftarrow$

相关内容