开发者

Multiline brace in eqnarray

开发者 https://www.devze.com 2023-01-10 13:24 出处:网络
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 t开发者_如何学Gohese two parts of the equation. Something

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 t开发者_如何学Gohese two parts of the equation. Something like

foo = bar

    = baz }
          } explain
    = etc }

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


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):

Multiline brace in eqnarray

0

精彩评论

暂无评论...
验证码 换一张
取 消