I'm trying to overbrace a short equation (or part thereof) with a long superscript. This expands the overbrace to both fit content and superscript, which takes up a lot of space and looks ugly. There is a way to have the content "overflow" the brace, so it will only expand to fit its contents, but I have been unable to find out how to solve this.
E.g.:
$$ \cdots \overbrace{=}^{\text{Very long description here}} \cdots $$
Any ideas?
Thanks
Stewart's rlap hint put me in the right direction. With the help of an article about this topic I managed to accomplish what I wanted to do. I use the \mathclap
command as defined in the linked article.
Thanks, xeen
Thanks a lot! Just what I was looking for. To anyone not too sure how to convert Alexey Malistov's solution to a macro, use this:
\newcommand{\longoverbrace}[2]{\overbrace{#1}^{\text{\hbox to 0cm{\hss #2 \hss}}}}
$$ \cdots \longoverbrace{=}{This is easier to write (and read)}\cdots $$
(Remember to \usepackage{amsmath}
in your preamble.)
$$ \cdots \overbrace{=}^{\text{\hbox to 0cm{\hss Very long description here \hss}}} \cdots $$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With