aboutsummaryrefslogtreecommitdiff
path: root/default.latex
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-04-25 21:05:31 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-04-25 21:06:58 -0700
commit6836e16da2448885c80008b03fdeb646c6ea3035 (patch)
tree62041ef7172afaba3f576cc50be3bb68d8ee3adc /default.latex
parent2870f527ccb10eff1fb077f38d60330571462745 (diff)
downloadpandoc-6836e16da2448885c80008b03fdeb646c6ea3035.tar.gz
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.
Diffstat (limited to 'default.latex')
-rw-r--r--default.latex6
1 files changed, 4 insertions, 2 deletions
diff --git a/default.latex b/default.latex
index f385329e0..1f5181323 100644
--- a/default.latex
+++ b/default.latex
@@ -12,9 +12,11 @@ $if(euro)$
\usepackage{eurosym}
$endif$
\else % if luatex or xelatex
- \usepackage{fontspec}
\ifxetex
+ \usepackage{mathspec}
\usepackage{xltxtra,xunicode}
+ \else
+ \usepackage{fontspec}
\fi
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€}
@@ -28,7 +30,7 @@ $if(monofont)$
\setmonofont{$monofont$}
$endif$
$if(mathfont)$
- \setmathfont{$mathfont$}
+ \setmathfont(Digits,Latin,Greek){$mathfont$}
$endif$
\fi
% use microtype if available