Add precedence handling in latex pretty-printer