[Tex/LaTex] How to avoid uppercase function name while using Function


In LaTeX, I want to define a function in my algorithm, following is my code in case:

       \Function{BuildPolicySet}{PolicySet PS, CCR ccr}

In the pdf I got

function BUILDPOLICYSET(PolicySet PS, CCR ccr)

Actually I don't need the function name being in uppercase.

What should I do if I want the function name in the pdf to be the same as in the LaTeX code?

Best Answer

The function name is set using a predefined \textproc, which is similar to \textsc, changing the shape to small-caps. Redefine this to be empty and things will turn back to normal:

enter image description here

\usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx
\algrenewcommand\textproc{}% Used to be \textsc

  \Function{BuildPolicySet}{PolicySet PS, CCR ccr}
    \State blabla..