TransWikia.com

Pagebreak in an algorithm using algstore/algrestore

TeX - LaTeX Asked on April 16, 2021

I’m trying to use algstore/algrestore to split an algorithm over two pages. However, I would like to not insert a title in the split portion of the algorithm, similar to what is shown here. My only issue with this is that the bold line gets inserted above the thin line in the second portion, because the title is removed. Is there a way to remove this bold line?

The minimal code associated to the above image is as follows:

begin{algorithm}[H]
    caption{Example Algorithm} 
    begin{algorithmic}[1] 
    Require $x$
    Ensure $f(x)$
        Procedure{Function}{$x$} 
            State
            State
            algstore{alg}
    end{algorithmic}
end{algorithm}

begin{algorithm}[H]
    begin{algorithmic}[1] 
            algrestore{alg}
            State
            State
            State
        EndProcedure   
    end{algorithmic}
end{algorithm}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP