I am trying to align two equations, however they are not aligning at the equals sign but at the comma at the end of the equation. How can I change this?
\begin{align}
A_{ij}^y=
\begin{cases}
1, & \text{if the link between $x_{i,j}$ and $y_{i,j}$ is included},\\
0, & \text{otherwise},
\end{cases} \\
R_{ij} = r_{ij},
\end{align}
Thanks for your help
Best Answer
You have to place the alignment marks
&
at the equals sign:Also, I have used the
cases*
environment from themathtools
package to typeset the cases, as that typesets the second column in text mode.