4

The following code gives two examples: The former gives only one label for two equations with a redundant notation "{ ", but the later gives three labels (It should be two?).

Is it possible to give only one label for multiple equations without the notation "{"?

\begin{eqnarray}
  \begin{cases}
A &\sim a,\\
B &\sim b,\\
  \end{cases}
\end{eqnarray}

\begin{align}\label{General}
A &\sim a,\\
B &\sim b,\\
\end{align}

enter image description here

My desired output is the following; enter image description here

  • I've changed the tag to math-mode; your example is using latex, so it's not "tex-core". Both of the answers use structures defined by amsmath. It could be instructive for you to read the amsmath users guide. If you're using a TeX Live installation, this can be accessed by typing texdoc amsmath at a command line prompt. – barbara beeton Sep 19 at 15:43
6

Yes, it is possible by using split environment, and the tags are:

\begin{equation}\label{General}
\begin{split}
A &\sim a,\\
B &\sim b,
\end{split}
\end{equation}
  • 1
    Thank you for quick reply, it is quite new for me, thank you. – Camford Oxbridge Sep 19 at 14:00
2

You can use an aligned environment nested within your equation:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{equation}
    \begin{aligned}
        A &\sim a,\\
        B &\sim b,
    \end{aligned}
\end{equation}
\end{document}
  • 1
    Thank you for reply, it helps me a lot. – Camford Oxbridge Sep 19 at 14:09
  • 2
    There's no need for the final \\ in a stack. – Werner Sep 19 at 15:38

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.