2

I can't believe how difficult it is to work with \begin{equation}. I put one extra blank row under the equation and multiple errors popped up. Anyways, I have two equations which are labelled:

\begin{equation}
a = b + c  \label{1} 
\end{equation}
\begin{equation}
ddddddd = e+x \label{2} 
\end{equation}

which gives

enter image description here

Questions:

  1. Is it possible to work with just one \begin{equation}. I attempted to put both equations into one \begin{equation} and it threw me an error.

    Package amsmath Error: Multiple \label's: label '1' will be lost. ddddddd = e+x \label

  2. Is it possible to align the equations at the beginning so that $a$ and $d$ matches up? I tried using \begin{align} around the code and it gave me.

    Bad math environment delimiter. \end{align} You can't use \eqno in math mode. \end{align} Missing \endgroup inserted. \end{align} Missing } inserted. \end{align} \begin{align} on input line 445 end...

And 20 more errors.

7

Write this, after you've loaded amsmath:

\begin{align}
& a = b + c  \label{1} \\
& ddddddd = e+x \label{2} 
\end{align}
  • You missed \\ after the label{1} but everything worked – Aåkon Dec 2 '15 at 2:34
  • Thank you for pointing the oversight. It's corrected now. – Bernard Dec 2 '15 at 9:50
  • 1
    Might also want to align the = (just a comment to the OP) – daleif Dec 2 '15 at 10:00

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.