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.

Mateusz Piotrowski
  • 357
  • 1
  • 5
  • 16
Aurel
  • 11

1 Answers1

2

You could use mathtools.

\documentclass{article}
\usepackage{mathtools}

\begin{document}
     $\xrightarrow{print(5)}$
\end{document}
MrBrightside
  • 320
  • 1
  • 3
  • 10