How can I add the list of algorithms from algorithm2e
to the table of contents of a KOMA-Script class?
MWE:
\documentclass[oneside,listof=totoc]{scrbook}
\setuptoc{loa}{totoc} %does not work
\usepackage{algorithm2e}
\begin{document}
\tableofcontents
\listofalgorithms
\chapter{First}
\begin{algorithm}
\caption{title}
this is an algorithm
\end{algorithm}
\end{document}
The use of the global option dotocloa
, which loads the package tocbibind
is disliked by KOMA-Script classes.