tags:

views:

73

answers:

1

I have an eqnarray that consists of 3 lines. I would like to have a right brace } that spans the last two lines and some brief text explaining these two parts of the equation. Something like

foo = bar

    = baz }
          } explain
    = etc }

but using one large brace, obviously. Is this possible?

+5  A: 

It is recommended to use align instead of eqnarray (it gives wrong spacing sometimes). Here is how it can be done with align:

\begin{align}
    foo & \left.\begin{array}{l} = bar \\ \end{array}\right. \\
        & 
    \left. \begin{array}{l}
        = baz \\
        = etc
    \end{array}\right\} explain
\end{align}

The second line's array is just to make the spacing right.

Result will be like this (but of course with equation numbers):

alt text

Cloudanger
You only get one number for the second two equations. Is this sufficient, OP?
Geoff
Looks good. I don't need equation numbers for individual lines. Thanks!
thekindamzkyoulike