I recently read a blog post on literate programming and that tex was written using this paradigm. So I thought it might be a good idea to read the original tex program's source, by Knuth himself (the pascal version) in the literal programming style. However, having downloaded the distribution, I only find the raw file tex.web
in the directory, and the tooling available via package managers (ctangle
, cweb
) only works with C files.
So I was wondering whether a PDF file with the literate programming output was available on line, yet an hour of searching online did not yield a result. So: Is there the literate programming output for humans available for the tex processor?
tex.web
is available on TeX Live withtexdoc tex
.web >>Weave> .tex >>pdfTeX> .pdf
path, but I thought that disclosing this trick on a web site would constitute copyright infringement, thus clearly violating TeX.SX policy; I was not aware of the fact that the PDF is directly available throughtexdoc
! I’ll immediately remove my misleading comment, as well as this one in 48 hours.tex.pdf