I'm using the recommended algpseudocode package, and have defined a procedure inside an algorithmic environment that I would like to refer to from the main text. Inside this environment,
\Procedure{MyProc}{$x$}
and
\Call{MyProc}{$y$}
both display MyProc in what appears to be a nice small-caps style. I would like this same styling to be applied when I refer to the procedure name from the main text, but I couldn't find a way to do this in the manual, and trying to start an "in-line" environment didn't work:
Calling the procedure\begin{algorithmic}\Call{MyProc}{$y$}\end{algorithmic} results in
It results in the error:
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.418 ...thmic}\Call{MyProc}{$y$}\end{algorithmic}
, results in
?
Any ideas? Please don't tell me I have to grovel through the algpseudocode source code, dig up whatever style it's applying, and hardcode that each time I want to refer to a procedure name...
Thanks!
\documentclass{...}and ending with\end{document}. – Jul 11 '14 at 16:18\textprocworks, thanks! Would be nice if\textprocwas mentioned somewhere in the package's manual, but I'll settle for this. Also I've edited the title of that question to make it easier to find. – j_random_hacker Jul 11 '14 at 16:31