stakhanov parent
An alternative stack that circumvents LaTeX and that I've successfully used for a book-scale project would be pandoc+weasyprint.
https://github.com/Kozea/WeasyPrint
> From a technical point of view, WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. WeasyPrint is free software made available under a BSD license.
Hmm, I wonder if you could use servo for a similar purpose.