Latex parser changes