I occurred a problem recently, but, I donot know how to solve it?


Undefined control sequence.
l.26 $$\eqalignno
                 {P^{-1}&=P_{1}^{-1}+P_{2}^{-1}\cr P^{-1}\mathhat{x}&=P_{1}^...

My codes:

 $$\eqalignno{P^{-1}&=P_{1}^{-1}+P_{2}^{-1}\cr P^{-1}\mathhat{x}&=P_{1}^{-1}\mathhat{x}_{1}+P_{2}^{-1}\mathhat{x}_{2}.&\hbox{(7)}}$$

1 Answer 1


Is this you want?

 P^{-1}           &=P_{1}^{-1}+P_{2}^{-1}\\

enter image description here

Actually, I should admit that I don't understand your code (\eqalignno and \mathhat). And in latex, don't use $$.

  • 1
    \eqalignno is macro from plainTeX, but \mathhat is unknown. The construction looks like plain TeX and the first three lines and the last line of OP's code is only something like curiosity.
    – wipet
    Apr 8, 2015 at 13:17
  • Yes, thank you, you solved my problems. It seems I mix the Tex codes with Latex environment, see this, tex.stackexchange.com/a/55694/44227.
    – wayne
    Apr 8, 2015 at 13:17
  • @wipet You are right, actually, I copy this code from TEX Source of an IEEE paper which is a Full Text in HTML version in order to be used in my paper.
    – wayne
    Apr 8, 2015 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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