fixed latex syntax errors