diff options
author | Vaclav Haisman <vhaisman@gmail.com> | 2017-01-11 23:07:41 +0100 |
---|---|---|
committer | Vaclav Haisman <vhaisman@gmail.com> | 2017-02-06 07:48:29 +0100 |
commit | 1e03774d3451c1efd2edae98e6357d1fdd322de5 (patch) | |
tree | bdd88a36bc8fe749edd8d77670b9ec56e5aecaed | |
parent | ab6b3f060dd1559381dcba05aca1669f4cbe8e0e (diff) | |
download | pandoc-1e03774d3451c1efd2edae98e6357d1fdd322de5.tar.gz |
Use `unicode-math`.
Use `mathspec` with only XeLaTeX on request.
-rw-r--r-- | default.latex | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/default.latex b/default.latex index 128f79d8d..635c278d7 100644 --- a/default.latex +++ b/default.latex @@ -21,11 +21,17 @@ $if(euro)$ \usepackage{eurosym} $endif$ \else % if luatex or xelatex +$if(mathspec)$ \ifxetex \usepackage{mathspec} \else \usepackage{fontspec} + \usepackage{unicode-math} \fi +$else$ + \usepackage{fontspec} + \usepackage{unicode-math} +$endif$ \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} $for(fontfamilies)$ \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$} @@ -43,7 +49,14 @@ $if(monofont)$ \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$} $endif$ $if(mathfont)$ +$if(mathspec)$ + \ifxetex \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} + \else + \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} + \fi +$else$ + \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} $endif$ $if(CJKmainfont)$ \usepackage{xeCJK} |