5

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

1
  • 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. Commented Sep 19, 2019 at 15:43

2 Answers 2

10

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
  • 2
    Thank you for quick reply, it is quite new for me, thank you. Commented Sep 19, 2019 at 14:00
4

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}
2
  • 1
    Thank you for reply, it helps me a lot. Commented Sep 19, 2019 at 14:09
  • 2
    There's no need for the final \\ in a stack.
    – Werner
    Commented Sep 19, 2019 at 15:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .