# Text above and below of hook right arrow symbol in LaTeX

Symbol/Unicode  Hook right arrow\U+21AA
Type of symbol Chemical reaction
Package (requirement) mathtools
Argument [arg1]{arg2}
Latex command \xhookrightarrow[]{}
Example \xhookrightarrow[xyz]{pqr}

Sometimes, hook arrow is required in latex documents and you have to use \xhookrightarrow command of mathtools package to write text above and below the hook arrow.

Writing text above and below the hook arrow requires two arguments in the \xhookrightarrow[arg]{arg} command, Below are some examples.

\documentclass{article}
\usepackage{mathtools}
\begin{document}
$$\xhookrightarrow[xyz]{pqr}$$
$$\xhookrightarrow[ABC]{EFG}$$
$$\xhookrightarrow[A_1]{A_2}$$
\end{document}

Output :