If I write:

\begin{equation}
x+1
\end{equation}

and select these 3 lines and select TeX Style, I get the error:

Display math should end with $$

It works only if I write it in one line:

\begin{equation}x+1\end{equation}

Is there a way to write it on multiple lines?

The fact is that I want to use the command:

\begin{equation*}
|x|= 
\begin{cases} x & \text{if $x>0$,}
-x &\text{if $x\le 0$.}
\end{cases}
\end{equation*}

What I have to do to make it work in lyx?

I  have  tried  the  multline  example  in the  math  tips,  but  I  can't
figure  out how  to make  it work,  too. (I  have already  added the  line
\usepackage{amsmath, amsthm, amssymb} in the latex preamble)
-- 
A presto,
    Davide Cavallari                
Bilbo's First Law:
        You cannot count friends that are all packed up in barrels.

Reply via email to