fix rendering of dollar sign in latex