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

Having two document environments in the same .tex file makes plasTeX throw an error when picking a filename #214

Closed christianp closed 1 year ago

christianp commented 1 year ago

Someone had an old copy of their document at the end of their .tex file. plasTeX parse this and created a new document node, but couldn't pick a filename for it because the wildcard spec Chirun gives it says to use the title, and the second document's title is empty. plasTeX assumes that every attribute in the spec has at least one item.

Here's a minimal document that reproduces this:

\documentclass{article}

\usepackage{chirun}
\usepackage{amsmath}

\begin{document}

This is my thing!

\end{document}

\begin{document}

This is my thing!

\end{document}