Not exactly what you have asked for but you can find the LaTeX sources of the book at https://github.com/ds26gte/tyscheme with instructions of building a PDF version.
https://manual.calibre-ebook.com/generated/en/ebook-convert....
ebook-convert input_file output_file [options]
And there isn't very much impedance mismatch between mobi and epub, so the conversion back and forth between the two will almost always be high quality.