change format of latex equations