Math & Scienceoverbrace on top of a multi-line eqquation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
mghorba
Posts: 2
Joined: Fri Feb 08, 2019 4:36 pm

overbrace on top of a multi-line eqquation

Post by mghorba »

I would like to put a brace on top of a multiline equation. For instance in the following equation I want a brace on top of "k+l+m" which are broken over two lines. How can I do this?

I tried \overbrace{}^{\text{}} but it doesn't like multi lines (i.e. \\ inside \overbrace{}).

\begin{equation}
\begin{IEEEeqnarraybox}{rCl}
a & = & b + c
\\
& = & d + e + f + g + h
+ i + j + k \\
&& +\> l + m + n + o
\\
& = & p + q + r + s
\end{IEEEeqnarraybox}
\end{equation}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

overbrace on top of a multi-line eqquation

Post by kaiserkarl13 »

I'm confused as to what you want. Clearly, spreading a brace across a line break makes no sense. Do you want overbraces over both the end of one line and the beginning of the next one (i.e., two separate braces)?

If you're trying to get the brace itself to split in an arbitrary location and continue on the next line, THAT is impossible: the brace is a separate character, it can't be divided.
Post Reply