LaTeX template:  Changes to make mathfont work with xelatex.

We need the mathspec library, not just fontspec, for this.
We also need to set options for setmathfont.  Closes #734.