The post Vertical lines in algpseudocode shows how to add vertical lines for the blocks of code. But, how does one break algpseudocode algorithms that are too long for one page to still have the same algorithm number, and also have the line number continue on the next page (without restarting the line count).
Asked
Active
Viewed 169 times
\begin{algorithm} \begin{algorithmic} \caption{Part 1} \algstore{bkbreak}%--------------------- ... \end{algorithmic} \end{algorithm}and
– Hanz Schmidt Sep 27 '20 at 12:18\addtocounter{algorithm}{-1} \begin{algorithm} \caption{Part 2} \begin{algorithmic}[1] \algrestore{bkbreak}%--------------------- ... \end{algorithmic} \end{algorithm}