tags:

views:

35

answers:

2

Hi,

I want to write an equation which has a single left hand side and on the right hand side it has a/one curly brace ({). Next to the curly I have to write two statements in two different lines. How do I do it? Thanks

A: 

Are you looking for

\begin{cases}
  math text
\end{cases}

It wasn't very clear from the description. But may be this is what you are looking for http://en.wikipedia.org/wiki/Help:Displaying_a_formula#Continuation_and_cases

srean
As @Lucho indicated you need \usepackage{amsmath}, but I assume you are using it anyways. The packages amsmath, amssymb and amsthm are hard to do without when typesetting math.
srean
+1  A: 

You can try the "cases" env in amsmath.

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
  f(x)=\begin{cases}
    1, & \text{if $x<0$}.\\
    0, & \text{otherwise}.
  \end{cases}
\end{equation}

\end{document}
Lucho
Perfect. Thanks
yO2gO