Right now we generate the latex inside a JS file.
This is very bad and limits customisation.
Would be cool to fix this with templates. {{ stuff }}* writing the latex inside JS is very bad practice
* we can move a lot of the document logic outside the js
* more customization, ready for the future
* https://mozilla.github.io/nunjucks/