This question already has an answer here:

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.

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

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

marked as duplicate by Werner equations Nov 3 '16 at 17:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You are looking for the cases environment of the amsmath package. Also the \text{} macro for setting text inside math mode. – Steven B. Segletes Nov 3 '16 at 17:28

Use the cases environment, like this.

  D_{it} =
      1 & \text{if bank $i$ issues ABs at time $t$}\\
      2 & \text{if bank $i$ issues CBs at time $t$}\\
      0 & \text{otherwise}

enter image description here

  • However, this equation is not numbered by following this method. How I can number it? – Ahmed Arif Nov 3 '16 at 17:33
  • @AhmedArif Remove the star after equation. – gernot Nov 3 '16 at 17:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.