I'm trying to put a nice square bracket over a complex text, it should look like an \overline
but with ending like
\ulcorner
and \urcorner
.
The presence of \overrightarrow
and \overleftarrow
makes me believe that is possible to decorate the end of the \overline
bar.
I know the existence of \overbrace
, but I need a square bracket; moreover, \overbrace
takes too much vertical space
Best Answer
Try
\mathtools
's\underbracket
and\overbracket
:You can adjust the rule width and bracket height/depth via optional arguments. From the
mathtools
documentation (section 3.3.2 Braces and brackets, p. 14):Or, a more subtle approach with
abraces
:The usage requires a brace specification
<spec>
as an optional argument to\aoverbrace
and\aunderbrace
(see theabraces
documentation):