in algorithm2e one can define some function names as keywords and algorithm2e then provides a certain font in which they are printed.Now, I want to use the font even outside the algorithm, e.g. when discussing it. This only works sometimes by using \function name.
How do I replicate the function font manually?
\documentclass{report}\usepackage{algorithm2e}\begin{document} \begin{algorithm} \SetKwFunction{default}{default} \default($ a $). \end{algorithm} Here, \default still works, but it not always does.\end{document}