brackets latex equation code example
Example 1: brackets equation latex
\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}
Example 2: latex parentheses
\left(\sum_i^n\right)