# List of Algorithms - Caption Modification

I have a style file for my univerity thesis format, which for the most part does
the job.

Only trouble is that if redefines the lists of figures and tables and doesn't
provide for lists of algorithms.  I would, of course, like the list of
algorithms to match the others, but I know almost nothing about latex.  I copied
all references to lists of tables and figures and changed them to refer to
algorithms, and it almost works.

The last problem is that the code that makes the lot and lof double spaced
doesn't seem to run on the algorithms.  I've included just this code.  Can
anyone tell me why it is not being run on the algorithm captions?

(I can also provide the whole style file if it would help.)

Thanks for any help,

Brett Jones

------------ applicable code --------------

% LIST OF FIGURES
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\fi\chapter*{LIST OF FIGURES\@mkboth
{LIST OF FIGURES}{LIST OF FIGURES}}
\singlespace
\@starttoc{lof}\if@restonecol\twocolumn\fi
\doublespace
}

% indentation of figure caption in LOF
\def\l@figure{\@dottedtocline{0}{0em}{3em}}

% LIST OF TABLES
%
\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\fi\chapter*{LIST OF TABLES\@mkboth
{LIST OF TABLES}{LIST OF TABLES}}
\singlespace
\@starttoc{lot}\if@restonecol\twocolumn\fi
\doublespace
}

% LIST OF ALGORITHMS
%
\def\listofalgorithms{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\fi\chapter*{LIST OF ALGORITHMS\@mkboth
{LIST OF ALGORITHMS}{LIST OF ALGORITHMS}}
\singlespace
\@starttoc{loa}\if@restonecol\twocolumn\fi
\doublespace
}

% indentation of table caption in LOT
\let\l@table\l@figure
\let\l@algorithm\l@figure

\def\b{}  % a dummy definition used below

% Add an extra space between 2 captions in list of figures or tables.
% Also, place a period after the number.
ext@#1\endcsname}{#1}{\protect\numberline{\hfill\csname
the#1\endcsname.\hspace{1em}}{\ignorespaces #2}}

% enable list of tables/figures when the first table/figure is found
\ifnum \csname c@#1\endcsname = 1
\immediate\write\@auxout{\string\globaldefs1} % enable LOT/F in aux file
\immediate\write\@auxout{\string\b\csname ext@#1\endcsname true}
\immediate\write\@auxout{\string\globaldefs0}
\fi
\begingroup
\@parboxrestore
\normalsize
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
\endgroup}