8+4-3*2&=&x (1)    
8+4-6&=&x (2)    
12-6&=&x (3)  
x&=&6 (4)  

This is how I want the document to look, but I cannot figure out how to align the numbers (1,2,3,4) on the right on the same line as the equations

enter image description here

  • 1
    Hi and welcome to TeX.SE! Please have a look here about eqnarray. – mickep Sep 22 '17 at 18:47
  • 2
    remove all the numbers in brackets and remove the * so the equations are numbered automatocally – David Carlisle Sep 22 '17 at 18:47
  • If you want to set the numbers manually, you can reset the counter before the eqnarray (\setcounter{equation}{0}). If you don't want to use numbers, use \tag{...}. – jaytar Sep 22 '17 at 18:59

You shouldn't use eqnarray as it produces bad spacing around the alignment point. Usealign from amsmath, which further more has a simpler syntax:



8+4-3*2 &= x \\
8+4-6 &= x \\
12-6&= x \\
x &= 6


|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.