When I get an error and go back to my old script, I cannot run my document anymore. If I start a new one by just copypasting, it works fine again.
Does someone know what the cause may be?
It would spare me so much time. Thanks for all the support!!!
The error is as follows:
Runaway argument?
{\contentsline
!File ended while scanning use of \@writefile
<inserted text>
\par
I.4 \begin{document}
.auxfile. Sometimes, compiling one more time after fixing the error is enough to get correct contents in the generated file that causes the error from TeX's point of view. In your case, try deleting the.tocfile. – frougon Jan 23 '20 at 15:47