Code: Select all
\begin{algorithm}
...
\end{algorithm}
\begin{procedure}
...
\end{procedure}
\begin{algorithm}
...
\end{algorithm}
Algorithm 1: first algorithm name
...
Procedure procedure name
...
Algorithm 3: second algorithm name
...
The question is: how do I enforce that procedures would not increase the counter of algorithms?
I've tried to use
Code: Select all
\addtocounter{algorithm}{-1}
Code: Select all
\setcounter{algorithm}{<new value>}
Any ideas?