Modifying completion to work with latex better.