add latex editing support