so I have an equation below.
My latex code for it is:
\begin{align*}
CoJPoD_{ \{I_1, \cdots, I_{k-1}, I_{k+1}, \cdots, I_{n}\} | I_{k} } = CoJPoD_{ \{system \backslash I_{k}\} | I_k} \\
= P\left( X_1 \ge X_d^{I_1}, \cdots, X_{k-1} \ge X_d^{I_{k-1}}, X_{k+1} \ge X_d^{I_{k+1}}, \cdots, X_n \ge X_d^{I_n} | X_k \ge X_d^{I_k}\right) \\
= \frac{ P\left( X_1 \ge X_d^{I_1}, \cdots, X_{k-1} \ge X_d^{I_{k-1}}, X_k \ge X_d^{I_k}, X_{k+1} \ge X_d^{I_{k+1}}, \cdots, X_n \ge X_d^{I_n}\right) }{P\left(X_k \ge X_d^{I_k}\right)} \\
= \frac{JPoD_{\{I_1, I_2, \cdots, I_n\}}}{PoD_{I_k}} \\
= \frac{JPoD_{system}}{PoD_{I_k}}
\end{align*}
My question is, how do I make the equal sign in the first line, align with the equal signs in the last 2 lines so that they appear in the "middle" and align the 2 equal signs in line 2 and 3 on the far left. E.g, make it look like this: (I rearranged it in paint lol)
Best Answer
Here goes an answer:
Some of the changes I have made are:
&
syntax.\mathrm{text}
for subscripts which aretext
of length more than 1.\cdots
directive by\dots
so that amsclasses figure what is best to do.|
by\mid
.\left(...\right)
by\bigl(...\bigr)
.You'd find this entire document a very useful read. In particular, I'd like to draw you attention to the examples and discussion of the various align environments in Section 3 (pp. 3-9).
Output