[Tex/LaTex] Multiple lines one side of equation with a Curly Bracket

equationsline-breaking

I am trying to write an equation that looks like this, everything should be left aligned on the right hand side.

enter image description here

I am using the following code to write this equation.

  \begin{equation}
  D_{it} = \Bigg\{if \ bank \ i \ issues \ ABS \ at \ time \ t \\
  2 \ if \ bank \ i \ issue \ CBs \ at \ time \ t \\ 
  \ 0 \ otherwise
  \end{equation}

I am putting \\ for a new line but it does not work. Please guide how I can write the desired equation.

Best Answer

Use the cases environment, like this.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
  D_{it} =
    \begin{cases}
      1 & \text{if bank $i$ issues ABs at time $t$}\\
      2 & \text{if bank $i$ issues CBs at time $t$}\\
      0 & \text{otherwise}
    \end{cases}       
\end{equation}
\end{document}

enter image description here

Related Question