Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Pls help me! I got some error message in TeXniCenter about this equation. I tried to look for errors in parentheses, but could not find.

\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}

This is the result after the errors: result

5 errors:

! 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.
share|improve this question

closed as too localized by egreg, Frank Mittelbach, cgnieder, Andrey Vihrov, Werner Nov 10 '12 at 17:01

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

3  
typo: "rigth" -> "right" –  Memming Nov 10 '12 at 16:40
1  
Please, look at the first error message, not at the last one. –  egreg Nov 10 '12 at 16:51
    
THX, OMG, it was a simple mistake. –  Livius Nov 10 '12 at 16:51

1 Answer 1

In such a case start with the first error message:

! 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.

It says that the command at the end of the top line was never defined, right? That command is \rigth.

Fixing that by using the correct name \right will probably resolve your issues, the rest are most likely spurious errors as LaTeX tried to recover.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.