I consider myself quite experienced in this field by now. But today I am totally stumped. I have a .tex file where LaTeX truncates anything after page 7. It used to be that I had a \newpage in the middle of page 7 but if I remove that thing it will nicely place the things that should be on top of page 8 on the bottom of page 7 and then refuse to do page 8 so there is nothing at that specifik place ending the document. Rather it seems something else is going on. But how do I try to figure it out?
I have searched the log file for warnings and errors and all I have are a few warnings about fonts being loaded multiple times and some not being found so it uses fall backs. That can hardly be it I am thinking...
EDIT:
I have tried for a while now and decided to share my code: https://gist.github.com/jonalv/6305c13c491b65bf4d8e6cb709a41f18
in the hope that someone can figure it out...
\@@endwhich means in latex usually either\end{document}or\stopso you are executing one of those somewhere around page 7... – David Carlisle Jan 20 '21 at 11:15\iffalsegobbling up the rest of the document. – Skillmon Jan 20 '21 at 11:43\fi(or the user does something at the*prompt to finish up manually – David Carlisle Jan 20 '21 at 11:54\let\clearpage\relaxis not a good idea ..., even more if you forget to close the group meant to keep this local. – Ulrike Fischer Jan 20 '21 at 13:41\includewithout forcing a page break, but it always breaks latex. – David Carlisle Jan 20 '21 at 17:23