# 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
$$\begin{split} A = & \underbrace{ B + \\ & C +}_{xxx} \\ & D \end{split}$$
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

\documentclass{article}
\begin{document}
$$\begin{split} a &= b +c +g +r_q \\ &\quad \underbrace{ \mathmakebox[\widthof{\displaystyle b +c +g +r_q}][l]{ + x+y}}_{xxx} \end{split}$$
\end{document}

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

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ:      http://www.tex.ac.uk/faq
Superb Class:   http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
LaTeX book:     http://www.imf.au.dk/system/latex/bog/    (in Danish)
Remember to post minimal working examples.
.