# [Tex/LaTex] horizontal curly braces

beamer

Possible Duplicate:
Using braces to label parts of an equation

I have formula and I need to make horizontal curly brace underlying part of it. Also I need curly braces on top of the formula. How to do it? I tried to use \stackrel and \mathtop but it does not work.

You can try the following commands:

\overbrace{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:

\usepackage{amsmath}