loading tool…
The LaTeX command for xrightarrow (→) is \xrightarrow{f} — labeled right arrow.
\xrightarrow{f}Write \xrightarrow{f} inside math mode — that is, between $…$ for inline math or in a \[ … \] / equation block for display math. This symbol needs the amsmath package, so add \usepackage{amsmath} to your preamble.
$A \xrightarrow{f} B$Prefer to see it live? Paste it into the LaTeX preview and it renders as you type — no compiler, no signup.
\to\leftarrow\rightarrow\leftrightarrow\Leftarrow\Rightarrow\Leftrightarrow\iff\implies\uparrow\downarrow\updownarrow\nearrow\searrowSearch all 380+ LaTeX symbols →
Use \xrightarrow{f} in math mode after adding \usepackage{amsmath} to your preamble. For example, $A \xrightarrow{f} B$.
It comes from the amsmath package — add \usepackage{amsmath} to your preamble.