Yeah, I thought about using LaTeX. I've certainly used it a lot in the past, but became quite frustrated with the weird syntax and difficulty extending. Plus its a 1.2GiB download on OSX.
I may well generate latex as an output format as a first formatting step.