1

I want to write two equations in consecutive lines and I want to give them a single equation number. Often, in notebooks, we write multiple equations in consecutive lines and use a big } sign to allocate only a single equation number. Is it possible to do the same in LaTex? If yes, how do I do that?

I hope I could clearly state my problem.

  • No, this is not what I was asking. I want to put one big } at the end of line which covers both equations and at the end of the } the equation number would be given. – Samapan Bhadury Apr 16 '18 at 15:47
  • 1
    you could use the rcases environment as shown in this answer: https://tex.stackexchange.com/a/196634/579 – barbara beeton Apr 16 '18 at 16:13

3 Answers3

4

Simpler: load mathtools (needless to load amsmath in this case: the latter does it for you) and use its rcases environment:

\begin{equation}
    \begin{rcases}
        x = y \\
        w = z
    \end{rcases} = xy
  \end{equation

enter image description here

Bernard
  • 271,350
2

Use align and don't number the first one.

\begin{align}
 x &= y \nonumber \\
 w &= z 
 \end{align}

You can try this also:

  \begin{equation}
    \left.\begin{array}{ll}
        x &= y \\
        w &= z
        \end{array}\right\}
  \end{equation}
nidhin
  • 7,932
  • this is putting the whole equation in a single line in the pdf. But I wanted separate lines. – Samapan Bhadury Apr 16 '18 at 15:52
  • @SamapanBhadury I missed a \\\. See the edited anwer. – nidhin Apr 16 '18 at 15:57
  • Okay, I got what you are trying to tell. But the problem with this format is, the equation number is being implied to the later equation only. Whereas i want to give a set of relations the same equation number. And I think that can be implied by, using a curly bracket that stretches to multiple lines and is at the end of line to the right of which the equation number can be put. Is this even possible to do in LaTex? – Samapan Bhadury Apr 16 '18 at 16:01
  • Thanks. It was the second answer, that I was looking for. Problem solved. Thanks – Samapan Bhadury Apr 16 '18 at 16:03
0
\begin{equation}
\left.
\begin{array}{c}
A=7\\
B=8
\end{array}
\right\}
\end{equation}

Try the above code.

Sebastiano
  • 54,118
SaBha
  • 41
  • It is showing the following error:

    ! Missing delimiter (. inserted).} ...in{array}{c} A=7\ B=8 \end{array} \right}

    ! Missing delimiter (. inserted).} ...in{array}{c} A=7\ B=8 \end{array} \right}

    – Samapan Bhadury Apr 16 '18 at 15:54
  • \begin{equation} \left. \begin{array}{c} A=7\ B=8 \end{array} \right} \end{equation} Try the above code – SaBha Apr 16 '18 at 16:12
  • @SamapanBhadury it should read \right\}, note that dash before the }. – daleif Apr 16 '18 at 16:15