fix cdlatex mode