-1

I want to edit the problem of equal signs to be under each other.undesirable output

this code to me is perfect, so what would it be the problem.the code of the undesirable output

  • 11
    Don't use eqnarray. Use align from amsmath. Also, I think you can't wrap eqnarray in equation. – Phelype Oleinik Jan 11 '20 at 22:00
  • 4
    Welcome to TeX.SE!¨ Please provide code of your equation, not its image which we need to retype :-(. The best in form of MWE (Minimal working Example, a small complete document, which we can compile as it is). Something like thi: `\documentclass{article} \usepackage{amsmath}

    \begin{document} \begin{align} a & = b+c \ & = 2+2 \end{align} \end{document}`

    – Zarko Jan 11 '20 at 22:07
  • @Phelype Oleinik that was absolutely effective. (approved) – TCHassna Taha Jan 11 '20 at 22:22

2 Answers2

1

You can also use split math environment:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
    \begin{equation}
\begin{split}
e_{0,1} & = \left(x,y\right)_{w(x)}, \\
        & = \left(x,y\right)_{w(x)}.
\end{split}
    \end{equation}
\end{document}

enter image description here

Zarko
  • 296,517
0

This is the modified code:

\begin{equation}
\begin{aligned}
e_{0,1} & = \left(x,y\right)_{w(x)}. \\
        & = \left(x,y\right)_{w(x)}.
\end{aligned}
\end{equation}

This is its nice output. enter image description here

@Phelype Oleinik thanks, sir. Thanks, everyone.