Re:Tex Source Code
by glymor on Sunday January 10, 2010 @11:23AM
(#1043228)
To view on a unix system:
[ Parent
| on HN ]
In case anybody is too lazy: http://3e.org/private/tex.pdf
Does anyone know of a way to generate similar output but with some nice color-coding, or (even better) hyperlinks from functions and other symbols to their definitions?
It would probably be not too difficult to find the macros that generate the index and add in the appropriate PdfTeX instructions to make hyperlinks.
Although, as a veteran Knuth code reader, I would say that his code is intended to be read linearly, like a book, rather than in bits and pieces. (Think of it like dynamic programming: it's more efficient to start from the little functions and work your way up, than to start from the big functions and recurse your way down.)
That's really missing the beauty of the book form. Cross reference and non-linear reading is made easy by those "see also" sections on every right hand page. They're present in the PDF but they don't work so well on an on-screen version.