git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #234 from wilx/master-use-unicode-math
1ae92a5John MacFarlane
default.latex+13−1
@@ -21,11 +21,15 @@ $if(euro)$
21 \usepackage{eurosym}
21 \usepackage{eurosym}
22$endif$
22$endif$
23\else % if luatex or xelatex
23\else % if luatex or xelatex
24+$if(mathspec)$
24 \ifxetex
25 \ifxetex
25 \usepackage{mathspec}
26 \usepackage{mathspec}
26 \else
27 \else
27− \usepackage{fontspec}
28+ \usepackage{unicode-math}
28 \fi
29 \fi
30+$else$
31+ \usepackage{unicode-math}
32+$endif$
29 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
33 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
30$for(fontfamilies)$
34$for(fontfamilies)$
31 \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
35 \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
@@ -43,7 +47,15 @@ $if(monofont)$
43 \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
47 \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
44$endif$
48$endif$
45$if(mathfont)$
49$if(mathfont)$
50+$if(mathspec)$
51+ \ifxetex
46 \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
52 \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
53+ \else
54+ \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
55+ \fi
56+$else$
57+ \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
58+$endif$
47$endif$
59$endif$
48$if(CJKmainfont)$
60$if(CJKmainfont)$
49 \usepackage{xeCJK}
61 \usepackage{xeCJK}