The minimal (not) working example is
\documentclass{article}
\usepackage[algo2e,ruled,vlined]{algorithm2e}
\begin{document}
\begin{algorithm2e}[h]
\SetKwProg{myproc}{Procedure}{}{}
\myproc{foo()}{
$\ldots$
}
\end{algorithm2e}
\end{document}
This example works on Windows with latest version of portable Miktex. However, it doesn't work on Linux (I try Ubuntu and Debian) with texlive installed. Both Linux system is updated. The error I got on Linux is
! Undefined control sequence.
l.6 \SetKwProg
{myproc}{Procedure}{}{}
Note, that with texlive I successfully Latex many algorithms, the only command which is not working is \SetKwProg. Any suggestion how to resolve this problem?
\listfilesas part of your document preamble and check your.logfor the version number ofalgorithm2e. It should report the same as what's on CTAN: 5.0. If not, then you don't have the most up-to-date version, so read How do I update my TeX distribution? – Werner Jun 22 '13 at 14:11algorithm2efrom CTAN and place it your local TEXMF folder or overwrite the existing version in your tree. Remember to refresh the filename database afterwards (mktexlsr). – Werner Jun 22 '13 at 14:29.styfiles, to make them available to all my.texfiles?, since you'll be using "your own" version ofalgorithm2e. – Werner Jun 22 '13 at 14:32which pdflatex. – T. Verron Jun 22 '13 at 14:52which pdflatexreturns/usr/bin/pdflatex, but I am not sure that this is proper place to put algorithm package. – Dejan Jun 22 '13 at 14:57~/texmf/tex/latex/and put the algorithm2e folder in it, runmktexlsrand now it's working. Thank you all. – Dejan Jun 22 '13 at 15:09