changes to latex grammar