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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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