aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-06 10:42:56 +0100
committerGitHub <noreply@github.com>2017-02-06 10:42:56 +0100
commit1ae92a53c0bf0739a7875542d6895d28cd1e8774 (patch)
tree3452be4d8326ff14d697be3b48a2dd992d929597
parentab6b3f060dd1559381dcba05aca1669f4cbe8e0e (diff)
parentb2aa9f0d0e9167d51dd7b814432faaed84b7c693 (diff)
downloadpandoc-1ae92a53c0bf0739a7875542d6895d28cd1e8774.tar.gz
Merge pull request #234 from wilx/master-use-unicode-math
Use `unicode-math`.
-rw-r--r--default.latex14
1 files changed, 13 insertions, 1 deletions
diff --git a/default.latex b/default.latex
index 128f79d8d..030ab90f1 100644
--- a/default.latex
+++ b/default.latex
@@ -21,11 +21,15 @@ $if(euro)$
\usepackage{eurosym}
$endif$
\else % if luatex or xelatex
+$if(mathspec)$
\ifxetex
\usepackage{mathspec}
\else
- \usepackage{fontspec}
+ \usepackage{unicode-math}
\fi
+$else$
+ \usepackage{unicode-math}
+$endif$
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
$for(fontfamilies)$
\newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
@@ -43,7 +47,15 @@ $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$
$endif$
$if(CJKmainfont)$
\usepackage{xeCJK}