add latex generation script