I am using multiple eqnarray* in one document, but the align doesnt look nice:
\begin{eqnarray*}
\bar{x}& = & \frac{1}{n} \sum_{i=1}^n x_i\\
& = & \frac{45+60+...+53+65}{10}\\
& = &\frac{284}{5}\\
\end{eqnarray*}
\subsection{Another one}
Some text and other tings...
\begin{eqnarray*}
s^2 & = & \frac{1}{n-1} \sum_{i=1}^n (x_i - \bar{x})^2\\
& = & \frac{1}{9} ((45-57,2)^2+(60-57,2)^2+\dots+(65-57,2)^2)\\
\end{eqnarray*}
If you look at the result, you can see that not all the equal signs align equally. The grouping with eqnarray* works, but because we have to insert some other stuff (like subsections), we can't continue the eqnarray* to force all equal signs from both eqnarray* to align the same way. How can we do this?
align*
noteqnarray*
although you would have the same issue here – David Carlisle Nov 23 '16 at 13:02