This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=latex 2022.5.2) 27 MAR 2023 11:15 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **toc.tex (./toc.tex LaTeX2e <2021-11-15> patch level 1 L3 programming layer <2022-01-21> ! Undefined control sequence. l.1 \tableofcontents 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. ) ! Emergency stop. <*> toc.tex *** (job aborted, no legal \end found) Here is how much of TeX's memory you used: 16 strings out of 478288 382 string characters out of 5849316 289001 words of memory out of 5000000 18313 multiletter control sequences out of 15000+600000 469259 words of font info for 28 fonts, out of 8000000 for 9000 1141 hyphenation exceptions out of 8191 13i,0n,12p,55b,10s stack positions out of 5000i,500n,10000p,200000b,80000s No pages of output.