git.iko.soy/typeable/pandoc
on master help sign in
Use `unicode-math`.
1e03774Vaclav Haisman
default.latex+13
@@ -21,11 +21,17 @@ $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{fontspec}
29+ \usepackage{unicode-math}
28 \fi
30 \fi
31+$else$
32+ \usepackage{fontspec}
33+ \usepackage{unicode-math}
34+$endif$
29 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
35 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
30$for(fontfamilies)$
36$for(fontfamilies)$
31 \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
37 \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
@@ -43,7 +49,14 @@ $if(monofont)$
43 \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
49 \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
44$endif$
50$endif$
45$if(mathfont)$
51$if(mathfont)$
52+$if(mathspec)$
53+ \ifxetex
46 \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
54 \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
55+ \else
56+ \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
57+ \fi
58+$else$
59+ \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
47$endif$
60$endif$
48$if(CJKmainfont)$
61$if(CJKmainfont)$
49 \usepackage{xeCJK}
62 \usepackage{xeCJK}