I included algorithm2e and start getting error message of "algorithm2e.sty command\procedure already defined." Here are the list of packages in my latex file
\documentclass[useAMS,usenatbib]{coin.cls}
\def\bSig\mathbf{\Sigma}
\newcommand{\VS}{V\&S}
\newcommand{\tr}{\mbox{tr}}
%\usepackage[figuresright]{rotating}
\usepackage[vlined,ruled,linesnumbered, algo2e]{algorithm2e}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{float}
\usepackage{hyperref}
\usepackage{wrapfig}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{stfloats}
Best Answer
If you're referring to
coin.cls
that forms part of the Computational Intelligence group at Dalhousie University's Department of Computer Science, then the solution is fairly straight-forward if you want to keep usingalgorithm2e
: set the\procedure
and\endprocedure
macros to\relax
.So if you're not going use these theorem-like structures, then there shouldn't be any other conflict.
Both the
algorithm
andprocedure
environments are predefined inside thecoin
document class as theorems:The
algorithm
environment definition is avoided by using thealgo2e
option ofalgorithm2e
, which creates analgorithm2e
float rather thanalgorithm
.