When I use the package algorithm2e
, I find the algorithms can be easily numbered, but the procedure cannot. How can I number the Procedures in algorithm2e
, like Procedure 1, Procedure 2, …
%% Procedure 1
\begin{procedure}
…
\end{procedure}
%% Procedure 2
\begin{procedure}
…
\end{procedure}
Best Answer
The
procedure
environment is a special form of thealgorithm
environment. Passing the optionprocnumbered
toalgorithm2e
numbers procedures using the same counter as algorithms: