1

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.

1

1 Answer 1

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 .