[Tex/LaTex] tocloft, listoffigures, listof=totoc, KOMA: not in tableofcontents

koma-scripttable of contentstocloft

This MWE illustrate the problem:


without the package tocloft the listoffigures will be included in the tableofcontents but with tocloft, the "List of Figures" is not in "Contents". What can I do to have the listoffigures in tableofcontents?

Best Answer

Here is an idea based on this answer:






\chapter{Chapter 1}

\section{Section 1}
\caption{testfig 1}

\chapter{Chapter 2}


\caption{testfig 2}


This gives me the following output:

Output with the above code

Is this what you wanted?