大量未定义的控制序列和缺少 { } $ 错误

大量未定义的控制序列和缺少 { } $ 错误

我不想开太多帖子,所以我把两个错误合并在一起了。提前致歉。

有问题的完整段落

\documentclass {book}
\include {amsmath}
\begin {document}

\section {error prone}
The charge density is substituted by a superposition of a reference or 
input density $ n'_{0} = n_{0} ( \vec{r}' ) $and a small change of
$ \delta n' \eq \delta n (\vec {r}') , \int d \vec_{r}' $ is expressed by $\int '$

\end {document}

这些行具有未定义的控制序列

另一个错误是

    ! Missing { inserted.
<to be read again>

?
! Missing } inserted.
<inserted text>

?
! Missing { inserted.
<to be read again>

?
! Missing } inserted.
<inserted text>

?
! Missing $ inserted.
<inserted text>

我已经包含了{amsmath}

答案1

您既没有显示完整的文档,也没有显示完整的错误消息。

\documentclass{article}

\begin{document}
The charge density is substituted by a superposition of a reference or 
input density $ n'_{0} = n_{0} ( \vec{r}' ) $and a small change of
$ \delta n' \eq \delta n (\vec {r}') , \int d \vec_{r}' $ is expressed by $\int '$
\end{document}

产生错误

! Undefined control sequence.
l.6 $ \delta n' \eq
                    \delta n (\vec {r}') , \int d \vec_{r}' $ is expressed b...

? 

换行符显示了 TeX 已经进行了多远,并且未定义的命令是\eq。应该是=

文件

\documentclass{article}

\begin{document}
The charge density is substituted by a superposition of a reference or 
input density $ n'_{0} = n_{0} ( \vec{r}' ) $and a small change of
$ \delta n' = \delta n (\vec {r}') , \int d \vec_{r}' $ is expressed by $\int '$
\end{document}

产生错误

! Missing { inserted.
<to be read again> 
                   _
l.6 ...ta n' = \delta n (\vec {r}') , \int d \vec_
                                                  {r}' $ is expressed by $\i...

?

其中换行符再次突出显示了错误的位置。

\documentclass{article}

\begin{document}
The charge density is substituted by a superposition of a reference or 
input density $ n'_{0} = n_{0} ( \vec{r}' ) $and a small change of
$ \delta n' = \delta n (\vec {r}') , \int d \vec{r}' $ is expressed by $\int '$
\end{document}

运行无错误。

相关内容