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?

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

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{cases} x & \text{if $x≥0$,}
    -x &\text{if $x\le 0$.}
Well, I don't know what I was doing wrong; clearly it does work. Thanks –  Peter Flom Oct 11 '12 at 9:52
@PeterFlom see also… which is full of goodies :) –  TooTone Mar 18 '14 at 11:01

You must log in to answer this question.

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