I have these equations:
\begin{flalign*}
p(C = c_1 | X = t) &= \frac{p(X = t | C = c_1) p(C = c_1)}{p(X = t)} &= \frac{\theta_1 \pi_1}{\theta_1 \pi_1 + \theta_2 (1 - \pi_1)} \\
p(C = c_1 | X = h) &= \frac{p(X = h | C = c_1) p(C = c_1)}{p(X = h)} &= \frac{(1 - \theta_1) \pi_1}{(1 - \theta_1) \pi_1 + (1 - \theta_2) (1 - \pi_1)}
\end{flalign*}
They look like this:
But I want the rightmost part to be aligned to the left. Especially, I want the two last equals signs to be aligned, and move as far left as possible dragging the last part of the formular with them. How do I do that?
\begin{alignat*}{2}
instead of\begin{flalign*}
(with\end{alignat*}
, of course); use&&=
in front of the second=
.flalign
should be used very sparingly; it's not a “catch-all” environment. Use the specific tool for the job.