I also write it in Vim, but a script turns a kind of markdown derivative of mine into HTML, inserts it into a template, which in turn is converted to PDF by Chrome.<p>I have most of the bugs sorted out, which fonts work fine and render selectable text, how to deal with a single pixel white line in a full page background image, etc. It works, but it&#x27;s an ugly hack. I&#x27;m dreaming of writing my own PostScript someday. From my initial research, it seems to be not that hard really.