The mathtools
package has a very useful implementation of \underbracket
and \overbracket
that take two extra parameters: the gauge of the bracket and its distance from the text. From Sec. 3.3.2 (v. 1.10) of the package documentation:
\underbracket[〈rule thickness〉] [〈bracket height〉]{〈arg〉}
\overbracket[〈rule thickness〉] [〈bracket height〉]{〈arg〉}
The 〈arg〉
can be of the form {bracketed matter}_{label}
(or substituting ^
for _
in the case of \overbracket
).
The documentation discusses infelicities of spacing in the traditional \underbrace
and \overbrace
, and seems to be saying that the package contains a revised from of these, as well. If so the revised versions do not seem to be as finely adjustable as \underbracket
and \overbracket
, and they are not documented in the documentation.