In my work, I am trying to typeset the following system of equations.
\begin{equation*}
\begin{cases}
\pi_n (i) = {n^2}/{\vol(G_n)} \cr
\pi_n (j) = {n}/{\vol(G_n)} \cr
q^{(n)}_{ij} = {1}/{n^2 } \cr
q^{(n)}_{ji} = {1}/{n}
\end{cases}
\end{equation*}
However, I would like to align the equal signs. If I do this by adding ampersands (see below), too much space is added before the equal signs, which makes the system of equations look worse than before. Is there any other non-manual way to align the equations?
\begin{equation*}
\begin{cases}
\pi_n (i) &= {n^2}/{\vol(G_n)} \cr
\pi_n (j) &= {n}/{\vol(G_n)} \cr
q^{(n)}_{ij} &= {1}/{n^2 } \cr
q^{(n)}_{ji} &= {1}/{n}
\end{cases}
\end{equation*}
Best Answer
I think that you want to use
\left\{...\right.
around your equation. To be able to align your equations inside these you can use thesplit
environment from the amsmath package.EDIT
In the comments both above and below the consensus is that the
aligned
environment is superior tosplit
in this situation. Perhaps I am missing it but I can't see the difference in this example, however, as people more knowledgeable than I are advocating using thealigned
environment there must be cases where it does matter.Here is a comparison of the two environments for this example:
This produces: