Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiline brace in eqnarray

Tags:

latex

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?

like image 751
thekindamzkyoulike Avatar asked Aug 05 '10 08:08

thekindamzkyoulike


People also ask

What does curly brackets mean in English?

: either one of the marks { or } that are used as a pair around words or items that are to be considered together.


1 Answers

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

like image 92
Cloudanger Avatar answered Oct 14 '22 02:10

Cloudanger