git.iko.soy/typeable/pandoc
on master help sign in
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.

commit6836e16da2448885c80008b03fdeb646c6ea3035 authorJohn MacFarlane <fiddlosopher@gmail.com> dateThu 25 Apr 2013, 21:05 (14 years ago) parent2870f52
1 file changed+4−2
default.latex+4−2
default.latex+4−2
@@ -12,9 +12,11 @@ $if(euro)$
1212 \usepackage{eurosym}
1313$endif$
1414\else % if luatex or xelatex
15− \usepackage{fontspec}
1615 \ifxetex
16+ \usepackage{mathspec}
1717 \usepackage{xltxtra,xunicode}
18+ \else
19+ \usepackage{fontspec}
1820 \fi
1921 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
2022 \newcommand{\euro}{€}
@@ -28,7 +30,7 @@ $if(monofont)$
2830 \setmonofont{$monofont$}
2931$endif$
3032$if(mathfont)$
31− \setmathfont{$mathfont$}
33+ \setmathfont(Digits,Latin,Greek){$mathfont$}
3234$endif$
3335\fi
3436% use microtype if available