It is a nice to compare the code of more than 150 TeX books that anyone can download from Gutenberg Project. You just have to look for TeX files at https://www.gutenberg.org/catalog/world/search. I don’t understand why this advanced search page is deprecated.