I am working in a LaTeX template on overleaf to write my thesis in. Usually, generating a table of contents is simply a matter of
\tableofcontents somewhere in the document. However, when I try to do this LaTeX gives the following compilation error:
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Does anyone know what is going on here? How do I fix this? I also checked
\listoftables and they throw similar errors.
I know errors in here always have to be fully reproducible. But since the template contains a
.cls file of +- 2000 lines, I decided not to paste everything here. The easiest and fastest way to reproduce the problem is opening This template on overleaf and adding
\tableofcontents on line 24 in
main.tex. Any help would be greatly appreciated.