您不能在数学模式下使用“\eqno”

您不能在数学模式下使用“\eqno”

请帮帮我!我在 TeXniCenter 中收到有关此方程的一些错误消息。我尝试查找括号中的错误,但找不到。

\begin{equation}
P=\frac{\hat{U}\hat{I}}{2T}\int\limits^{T}_{0} \cos \left(\varphi \right)-\cos \left(2\omega {t}-\varphi \rigth)\,{dt}=\frac{\hat{U}\hat{I}}{2T} \left[{T\cos\left(\varphi\right)-\frac{\sin \left(2\omega {t}-\varphi \rigth)}{2\omega}}\right]^{T}_{0}
\end{equation}

这是错误之后的结果:结果

5 个错误:

! Undefined control sequence.
l.223 ...ht)-\cos \left(2\omega {t}-\varphi \rigth
                                                  )\,{dt}=\frac{\hat{U}\hat{...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> \sin \left (2\omega {t}-\varphi \rigth 
                                                  )
l.223 ...eft(2\omega {t}-\varphi \rigth)}{2\omega}
                                                  }\right]^{T}_{0}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Missing \right. inserted.
<inserted text> 
                \right .
l.223 ...eft(2\omega {t}-\varphi \rigth)}{2\omega}
                                                  }\right]^{T}_{0}
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.

! You can't use `\eqno' in math mode.
\endmathdisplay@a ...\df@tag \@empty \else \veqno 
                                                  \alt@tag \df@tag \fi \ifx ...
l.224 \end{equation}

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.

! Missing \right. inserted.
<inserted text> 
                \right .
l.224 \end{equation}

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.

答案1

在这种情况下,从第一个错误消息开始:

! Undefined control sequence.
l.223 ...ht)-\cos \left(2\omega {t}-\varphi \rigth
                                                  )\,{dt}=\frac{\hat{U}\hat{...
The control sequence at the end of the top line
of your error message was never \def'ed.

它说顶行末尾的命令从未定义过,对吗?该命令是\rigth

使用正确的名称修复该问题\right可能会解决您的问题,其余问题很可能是 LaTeX 尝试恢复时的虚假错误。

相关内容