Accents\stackrel

\stackrelCommand

Used to place a label or annotation above a relation symbol, such as writing a symbol with text or another symbol over it

\stackrel{a}{b}
Topic
Accents
Available in
base
Kind
prefix
Allowed mode
math
Frequency
0.54% of corpus formulasrank 63 of 263
Commonality
medium
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\stackrelm{a}math contentm{b}math content

Argspec m m — two mandatory arguments. Reading argspecs

Common tasks#

How to stack a label on a relation#

Older synonym of a relation-class \overset.

X \stackrel{\mathrm{iid}}{\sim} Y

How to write a labeled arrow with \stackrel#

A \stackrel{f}{\to} B

How to write an approximated equality#

a_n \stackrel{n\to\infty}{\longrightarrow} L

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Expands to#

\stackrel{#1}{#2} \mathrel{\mathop{#2}\limits^{#1}}
base/stackrel-expandfrom Faithfulrender

Expand stackrel to an explicit relation-level stacked operator form.

\stackrel{#1}{#2} \mathrel{\mathop{#2}\limits^{#1}}

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\stackrel{a}{b}Positive · baselinePassPassPass
\stackrel a{b}Positive · bare[0]PassPassPass
\stackrel{a}bPositive · bare[1]PassPassPass
All 45 in Accents