Search code examples
latextex

How to write below/above the text in LaTeX?


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

thanks


Solution

  • $\overbrace{\hbox{Text}}^{\hbox{text above}}$
    $\underbrace{\hbox{Text}}_{\hbox{text below}}$
    $\stackrel{\hbox{Text above}}{\hbox{Text below}}$