With "literate code" documentation in a format that can be processed to PDF. ([DTX](http://www.tex.ac.uk/FAQ-dtx.html)?)