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.
This commit is contained in:
John MacFarlane 2013-04-25 21:05:31 -07:00
parent 2870f527cc
commit 6836e16da2

View file

@ -12,9 +12,11 @@ $if(euro)$
\usepackage{eurosym}
$endif$
\else % if luatex or xelatex
\usepackage{fontspec}
\ifxetex
\usepackage{mathspec}
\usepackage{xltxtra,xunicode}
\else
\usepackage{fontspec}
\fi
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€}
@ -28,7 +30,7 @@ $if(monofont)$
\setmonofont{$monofont$}
$endif$
$if(mathfont)$
\setmathfont{$mathfont$}
\setmathfont(Digits,Latin,Greek){$mathfont$}
$endif$
\fi
% use microtype if available