The build script do_sphinx was copied from ipython and is unix-based and thus needs to be reworked to enable latex.