← Back to context

Comment by mattpharr

6 years ago

It's pretty much a big hack.

The book was originally written in TeX, with lots of macros on top. We hacked together a custom translator (~3k loc, written in golang) that parses the TeX and generates the site.

Then MathJax to render the equations, Bootstrap 4 for some navigation, and jeri.io for the interaction with images.

Thank you, this is the first time I've seen a "literate programming" text presented on the web. It's really well done, and makes up for some of the drawbacks of on-paper LP: being able to expand the definitions of sections (modules?) in-place, and being able to follow function definitions, are both very useful.

I had some plans to present some other such written-in-TeX-literate-programs in HTML; could you perhaps share somewhere your "big hack" that you used here (the translator, the javascript)? Totally ok if you don't want to :) Thanks,