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.
Calibre is very good at converting epubs to mobi (and the other way around.) It ships with a commandline tool called `ebook-convert` too so you don't have to mess around in the GUI.