1

I have created the following algorithm command in the preamble:

\newcommand{\algo}[3]{\refstepcounter{algo}
    {
        \centering
        \framebox[\textwidth]{
        \parbox{0.95\textwidth} {\vspace{\topsep}
        {\bf Algorithm \thealgo : #2}\label{#1}\\
        \vspace*{-\topsep} \mbox{ }\\
        {#3} \vspace{\topsep} }}
    }}

How can I create a list of Algorithms like \listoffigures or \listoftables?

CarLaTeX
  • 62,716
LM95
  • 31
  • 1
    As always on this site please provide a full but minimal example for others to work with. Then we know which document class and packages we have to deal with. – daleif Apr 14 '21 at 10:59
  • You can use newfloat to create an algorithm float type (not named algo, already used) and use \captionof{algorithm}{...} to add entries to the list (or add \def@captype{algorithm} to \algo). – John Kormylo Apr 14 '21 at 13:10

0 Answers0