\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath}
\usepackage{float}
\begin{eqnarray*}
8+4-3*2&=&x (1)
8+4-6&=&x (2)
12-6&=&x (3)
x&=&6 (4)
\end{eqnarray*}
Asked
Active
Viewed 1,423 times
1
Stefan Pinnow
- 29,535
latex123
- 11
1 Answers
1
You shouldn't use eqnarray as it produces bad spacing around the alignment point. Usealign from amsmath, which further more has a simpler syntax:
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{mathtools}
\begin{document}
\begin{align}
8+4-3*2 &= x \\
8+4-6 &= x \\
12-6&= x \\
x &= 6
\end{align}
\end{document}
Bernard
- 271,350


eqnarray. – mickep Sep 22 '17 at 18:47*so the equations are numbered automatocally – David Carlisle Sep 22 '17 at 18:47eqnarray(\setcounter{equation}{0}). If you don't want to use numbers, use\tag{...}. – jaytar Sep 22 '17 at 18:59