### Re: : strange problem for "array" under "equation" enviro nment

Ratcliffe Philip George <philip.ratcliffe <at> uninsubria.it>

2002-04-05 08:56:52 GMT

Since it obviously caught Fangyin out and maybe others too, it's perhaps worth underlining:

LaTaX does NOT accept EMPTY LINES in math evironments.

This was the only problem with the scripts sent.

Cheers, Philip Ratcliffe

P.S. Replying with "e <CR>" to the LaTeX error message gets back the erroneous line (or what LaTeX thinks it is) in your editor - this often helps pinpoint the actual error - in this case it pinpoints precisely the empty line (because the implicit \par ends the math environment).

N.B. preferred e-mail address: philip.ratcliffe <at> uninsubria.it

----- Original Message -----

From: "Fangyin Zhang" <fzhang <at> eng.buffalo.edu>

To: <miktex <at> dsts.dk>

Sent: giovedì 4 aprile 2002 0.33

Subject: [MiKTeX]: strange problem for "array" under "equation" environment

> Dear MikTex members,

>

> I got some strange problem for "array" under "equation" environment. For example, I have some lines as following,

>

> \begin{equation}

> \left(

> \begin{array}{ccc}

> I_k & & \lambda_{11k} \\

> & I_k & \lambda_{22k} \\

> \end{array}\right)

> \end{equation}

>

> when I compile it by "texify", I got an error message: "missing $ inserted".

>

> If I change \begin{equation}......\end{equation} to $$......$$, then it works !. Now I change $$......$$ back to

> \begin{equation}......\end{equation}, it also works fine, evenif I close the file and re-open it.

>

> BUT, if I change anything in the array part, the problem happens again.

>

> Is it a bug of MikTex or I made something wrong?

>

> Thanks a lot for your help!

>

> Fangyin