How can I adjust the left margin of the list of algorithms?
What I have tried
For the list of figures and tables, the left margin could be adjusted like explained in Adjusting left margin of LOT and LOF :
\renewcommand\l@figure{\@dottedtocline{1}{0em}{2.3em}}
\renewcommand\l@table{\@dottedtocline{1}{0em}{2.3em}}
However, this does not work:
\renewcommand\l@algorithm{\@dottedtocline{1}{0em}{2.3em}}
The margin is not affected and I get the following warning:
Command \l@algorithm undefined. \renewcommand\l@algorithm
I have tried several variations: l@algorithms, l@algo, but none works. I was able to find the definition of l@figure in book.cls, but I could not find anything related to list of algorithms.
MWE
\documentclass{scrbook}
\makeatletter
\renewcommand\l@figure{@dottedtocline{1}{0em}{2.3em}}
\makeatother
\usepackage{algorithm}
\begin{document}
\begin{algorithm}
\caption{An algorithm}
\end{algorithm}
\begin{figure}
\caption{A figure}
\end{figure}
\listoffigures
\listofalgorithms
\end{document}
Output:



