In the last few days I have twice tried to use \cases in $\LaTeX$ and gotten nowhere. Why does it not work?

Or, if it does, how does it work?

share
3  
Would you be so kind as to show how it's not working? That is, is it rendering incorrectly or just not at all? –  Aarthi Oct 10 '12 at 23:14
    
It's rendering incorrectly. I can't get multiple lines even when I use \\ to separate them. –  Peter Flom Oct 10 '12 at 23:18
add comment

1 Answer 1

up vote 9 down vote accepted

Care to share an example, below taken from here appears to be displaying correctly for me here on meta.

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

Code used to generate this:

\begin{equation*}
    |x|= 
    \begin{cases} x & \text{if $x≥0$,}
    \\
    -x &\text{if $x\le 0$.}
    \end{cases}
    \end{equation*}
share
    
Well, I don't know what I was doing wrong; clearly it does work. Thanks –  Peter Flom Oct 11 '12 at 9:52
2  
@PeterFlom see also meta.math.stackexchange.com/questions/5020/… which is full of goodies :) –  TooTone Mar 18 at 11:01
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .