# Equation number alignment error

This equation number is in chapter 3, so when it comes like 3.45 in front of the equation, then no space with the equation and the equation number

\begin{eqnarray}
A_{1}r^{-(g_{0}(z)+g_{1}(z,\lambda))/B} \bigg(\frac{d g_{0}}{g z} +\frac{g g_{1}}{g z}\bigg) + (B_{2}+C_{c})r^{-(c_{0}(z)+c_{1}(z,\lambda)+f_{2}(z))/k}\bigg(\frac{d f_{0}}{d y} +\frac{d f_{1}}{d z}+\frac{d f_{x}}{d z}\bigg)-ccf=0 \nonumber  \\
(1+ggr^{f_{2}(b)/rr}) \bigg(\frac{d f_{gg}}{d z} +\frac{d f_{1}}{dhh}\bigg) +\frac{d f_{2}}{d z}-ff=0 \label{mmm6}
\end{eqnarray}


Stop using eqnarray use align from amsmath. AMS tracks the width of the equation number and move it out of the way if necessary, eqnarray obviously does not.

For more info as to why one should not use eqnarray see:

• but then equation number goes to a new row – Harry Oct 25 '13 at 12:14
• Where else should it go? – daleif Oct 25 '13 at 16:01
• cant we get the equation number on the same line where the equation is? – Harry Oct 25 '13 at 23:57
• If the EQ is too long, then how? Breaking display eqs are extremely difficult business, just look at the breqn package which is an attempt to solve this. So for most people it is better to break these eqs by hand. That is also what I do all the time. It other ends up being easier to understand for the reader – daleif Oct 26 '13 at 7:38