How to write below/above the text in LaTeX?

Guy picture Guy · Dec 13, 2009 · Viewed 48.2k times · Source

I want to have text above text (not superscript - x^2) but a \overbrace and text above it. (same for below the text)

thanks

Answer

Alexey Malistov picture Alexey Malistov · Dec 13, 2009
$\overbrace{\hbox{Text}}^{\hbox{text above}}$
$\underbrace{\hbox{Text}}_{\hbox{text below}}$
$\stackrel{\hbox{Text above}}{\hbox{Text below}}$