Given an algorithm written in algpseudocode:

  \caption{Part 1}
    \Procedure {FooProc}{$G$}
      \State ...

How can I now refer to FooProc in my document (outside of the algorithm environment) such that it has the same typeset as in inside the algorithm environment?

1 Answer 1


That is the document default small caps font so \textsc{FooProc}

Better would be to use the package defined command \textproc{Fooproc} which will do the same thing, but ensure that if you customise the fonts used in the psuedo-code, the reference will use the same font.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .