A couple sed commands against the text would turn your one-liners explained into asciidoc format, which in turn can product html, pdf, docbook, ebook output, not to mention txt. PS: You can even use it for your math notes :-) See: http://www.methods.co.nz/asciidoc/