Re: \underbrace spanning multiple lines

pechyony@xxxxxxxxxxxxxxxxx wrote:
Is there any way to underbrace mathematical expression taking several
lines. I'd like to do something like
A = & \underbrace{ B + \\
    & C +}_{xxx} \\
    & D
but it does not pass Latex compilation.

Thanks in advance,
Dmitry Pechyony

the above does of course not work because of the line breaks.

Here is a proof of concept showing that it could be done

\usepackage{mathtools} % auto loads amsmath
    a &= b +c +g +r_q \\
    &\quad \underbrace{
      \mathmakebox[\widthof{$\displaystyle b +c +g +r_q$}][l]{
        + x+y}}_{xxx}

It not optimized at all, just showing that it can be done


/daleif (remove RTFSIGNATURE from email address)

Superb Class:
LaTeX book:    (in Danish)
Remember to post minimal working examples.