[texhax] overlapping braces

Benjamin Sambale bsambale at gmx.de
Sat Feb 7 19:47:11 CET 2009


Thank you very much! That was all I need.

Kevin Godby schrieb:
> Hello, Benjamin.
>
> On Sat, Feb 7, 2009 at 9:52 AM, Benjamin Sambale <bsambale at gmx.de> wrote:
>   
>> Dear forum,
>>
>> is it possible to overlap the commands "underbrace" and "overbrace"? To
>> be more specific, I want something like $aba^{-1}b^{-1}$ with underbrace
>> under aba^{-1} and overbrace over ba^{-1}b^{-1}. I hope there is an easy
>> way to do this. Thanks.
>>     
>
> There may be a nice LaTeX package that does this, but here's how I did it:
>
> \[
> \underbrace{a%
> \makebox[0pt][l]{$\overbrace{\phantom{ba^{-1}b^{-1}}}$}%
> ba^{-1}}b^{-1}
> \]
>
> The \makebox contains the overbrace.  The overbrace contents are
> inside the \phantom so that it doesn't print the text twice.
>
> --Kevin Godby
>
>   


More information about the texhax mailing list