6

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

xeen
  • 61
  • 2

4 Answers4

2

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

xeen
  • 21
  • 1
2

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.)

stealthyninja
  • 10,343
  • 11
  • 51
  • 59
1
$$ \cdots \overbrace{=}^{\text{\hbox to 0cm{\hss Very long description here \hss}}} \cdots $$ 
Alexey Malistov
  • 26,407
  • 13
  • 68
  • 88
0

Two options I can think of:

  1. Experiment with \rlap, which will typeset its argument, and then continue typesetting over it. Horribly fiddly as a rule, but it should work for your example.
  2. Use Metapost to lay out the elements.
Charles Stewart
  • 11,661
  • 4
  • 46
  • 85