I'm trying to have two copies of the same algorithm, with the same number twice in a paper. The restatable environment is able to reproduce the algorithm but introduces a new algorithm number each time it is restated.
For example:
\begin{restatable}{algorithm}{myAlgo}
\vdots
\end{restatable}
% ...
\myAlgo* % will introduce a new number, even when using *
Question: Is there a (simple) way to restate an algorithm while using the same number as before.
Note: this question is extremely similar to this one. However, no answer was provided there and the question was (inexplicably, to me) closed.
