In LaTeX, I want to define a function in my algorithm, following is my code in case:
\begin{algorithm}[h]
\begin{algorithmic}[1]
\Function{BuildPolicySet}{PolicySet PS, CCR ccr}
blabla..
\EndFunction
\end{algorithmc}
\end{algorithm}[h]
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: