[Tex/LaTex] Numbering an array as one single equation LaTeX

arraysnumbering

I've looked around at various sites and tried switching between array/eqnarray but don't seem to be able to get the effect I would like. I want to simply give an array I have one single equation number. I would also like to know just to make sure, how to give each equation a number within an array.

The equation I have is the following:

$$
\begin{array}{lr}
N_{x,sk} = k_{sk}\left(\frac{t_{sk}}{b_{sk}}\right)^{2}\bar{Et} \;\;
N_{x,st} = k_{st}\left(\frac{t_{st}}{b_{st}}\right)^{2}\bar{Et}
\end{array}
$$

Could someone please help provide examples where I would have these equations showing one equation number and then also an example with two separate ones please?

Best Answer

Using the eqnarray environment instead of array, you can add \nonumber to any lines you don't want numbered. If you don't do this, every line will be numbered.

\begin{eqnarray}
N_{x,sk} &=& k_{sk}\left(\frac{t_{sk}}{b_{sk}}\right)^{2}\bar{Et} \nonumber \\
N_{x,st} &=& k_{st}\left(\frac{t_{st}}{b_{st}}\right)^{2}\bar{Et}
\end{eqnarray}

(Just remove the \nonumber from the above to get the second example.)