improve latex output format