TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What does it mean

! Misplaced \cr.
\math@cr@@@ ->\cr 
In latex error.

in this document

     \begin{pmatrix }
    \int_0^1 f(s) ds  \\
    int_0^\om g(s) ds 

share|improve this question

Your example generates

! LaTeX Error: Environment pmatrix   undefined.

because of the spurious space in \begin{pmatrix } and

! Undefined control sequence.

because \om is not defined.

It does only generates the error in the subject line if you ignore those errors and let TeX recover. Subsequent errors are nearly always spurious.

In this case \cr is the TeX primitive for a new line in an aligment which is used in the definition of \\. because the inner pmatrix did not start because of the first error, TeX takes the \\ as ending the outer alignment row inside the group, which is an error.

share|improve this answer
Thank you David, it is very nice. Respectfully. – Zbigniew Jan 13 '13 at 14:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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