Changes to fix compatibility with texmath 0.7