# Multiple lines one side of equation with a Curly Bracket [duplicate]

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.

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 StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); 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

## 1 Answer

Use the cases environment, like this.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$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{document}


• 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