48

Possible Duplicate:
Using braces to label parts of an equation

How do I put horizontal curly braces beneath and over parts of a formula? I tried to use \stackrel and \mathtop, but it did not work.

2
  • 1
    I have found. I should use \overbrace{}^{} and \underbrace{}^{}.
    – ashim
    Feb 29, 2012 at 17:52
  • Thanks for telling us that you found it! I closed it as a duplicate, since we had such a question already (several times).
    – Stefan Kottwitz
    Feb 29, 2012 at 18:05

1 Answer 1

96

You can try the following commands:

\overbrace{your-formula}^\text{your comment} 
\underbrace{your-formula}_\text{your comment} 

An example that I took from Wikibooks:

\[
  z = \overbrace{
    \underbrace{x}_\text{real} +
    \underbrace{iy}_\text{imaginary}
   }^\text{complex number}
 \]

Their result: example showing the result of \underbrace{•} and \overbrace{•}

Don't forget to add

\usepackage{amsmath} 

at the beginning of your document

1
  • This doesn't really work for matrix
    – Shaun Han
    Jan 9, 2022 at 1:05

Not the answer you're looking for? Browse other questions tagged .