I'm using the newalg package to typeset some algorithms, and I'd like to be able to typeset a keyword using the algkey macro. the problem is that I can't get it to work. Here's what I'm trying to do:
\begin{algorithm}{PromoteServer}{x}
servers \= \CALL{GetMeshServers}(x) \\
\begin{FOR}{\EACH M_n \IN servers}
\begin{IF}{n \eq \algkey{sizeof}(servers)}
\ELSE
\end{IF}
\CALL{AssignCachePartner}(M_{n+1})
\end{FOR}
\end{algorithm}
Where am I going wrong? The documentation for the package doesn't give any examples....
