LaTeX

kuniga.me > Docs > LaTeX

LaTeX

Syntax for LaTeX I often use for my writings.

Conditional

Keywords: if

Source:

\begin{equation}
  a_{ij}=\left\{
  \begin{array}{@{}ll@{}}
    0, & \text{if}\ i=j \\
    1, & \text{otherwise}
  \end{array}\right.
\end{equation}

Rendered:

\[\begin{equation} a_{ij}=\left\{ \begin{array}{@{}ll@{}} 0, & \text{if}\ i=j \\ 1, & \text{otherwise} \end{array}\right. \end{equation}\]