chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
30 stars 4 forks source link

Multiple instances of \end{document} cause empty notes #263

Open Lycanic opened 1 month ago

Lycanic commented 1 month ago

MWE (Test of End Document on LTI tool):

\documentclass{article}
\begin{document}
TEST 1
\end{document}
\end{document}

index.html for the document is entirely blank when this is compiled. Commenting out one of the \end{document}s allows a proper compilation (showing TEST 1)

Many lecturers use 'early' \end{document}s to cut notes short for different contexts whilst leaving the 'true' end in place, and LaTeX just stops at the first \end{document} (or I think more accurately, never begins a new document for the next to end).