I want to call a function in an algorithm environment.
\documentclass{article}
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{document}
\begin{algorithm}
\caption{Recursion}
\begin{algorithmic}[1]
\Procedure{Recursion}{$a$}
\State $a\gets Recursion(a)$ \Comment{Call Recursion again}
\State \textbf{return} $a$
\EndProcedure
\end{algorithmic}
\end{algorithm}
\end{document}
What do I have to do to get the "correct" style for the word "Recursion" in the line \State $r\gets Recursion(a)$?
I tried something like \State $r\gets \Procedure{Recursion}{a}$, but only received errors.
The official documentation has no exmple regarding this problem.


$R\cdot e\cdot c\cdot ... \cdot n(a)$which happens when writing text like this in math mode. – LaRiFaRi Jul 07 '14 at 13:54