I have a problem. I included the following:


and wanted to create a \listofalgorithms but not as chapter; I want it as section. I tried the following:


But then the title and the list are not on the same page even with the command \begin{samepage}\end{samepage} around or \nopagebreak in between. Can you please help me?


1 Answer 1


Temporarily change \chapter into \section:

enter image description here



\chapter{A chapter}


  \caption{An algorithm}

The grouping above limits the scope of the redefinition(s). As such \chapter becomes \section only until \endgroup.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .