Improve latex output, most of the work is done. Only cosmetic changes now