1

This question already has an answer here:

I am new in TeXstudio editor and I want to add an arrow with words above to show a transition between two states. Something like the picture below.

enter image description here

How can I do that.

marked as duplicate by Werner, user31729, user13907, moewe, Malipivo Apr 10 '15 at 19:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

You could use mathtools.

\documentclass{article}
\usepackage{mathtools}

\begin{document}
     $\xrightarrow{print(5)}$
\end{document}

Not the answer you're looking for? Browse other questions tagged or ask your own question.