add latex formula generation