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.
This commit is contained in:
parent
2870f527cc
commit
6836e16da2
1 changed files with 4 additions and 2 deletions
|
@ -12,9 +12,11 @@ $if(euro)$
|
||||||
\usepackage{eurosym}
|
\usepackage{eurosym}
|
||||||
$endif$
|
$endif$
|
||||||
\else % if luatex or xelatex
|
\else % if luatex or xelatex
|
||||||
\usepackage{fontspec}
|
|
||||||
\ifxetex
|
\ifxetex
|
||||||
|
\usepackage{mathspec}
|
||||||
\usepackage{xltxtra,xunicode}
|
\usepackage{xltxtra,xunicode}
|
||||||
|
\else
|
||||||
|
\usepackage{fontspec}
|
||||||
\fi
|
\fi
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||||
\newcommand{\euro}{€}
|
\newcommand{\euro}{€}
|
||||||
|
@ -28,7 +30,7 @@ $if(monofont)$
|
||||||
\setmonofont{$monofont$}
|
\setmonofont{$monofont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(mathfont)$
|
$if(mathfont)$
|
||||||
\setmathfont{$mathfont$}
|
\setmathfont(Digits,Latin,Greek){$mathfont$}
|
||||||
$endif$
|
$endif$
|
||||||
\fi
|
\fi
|
||||||
% use microtype if available
|
% use microtype if available
|
||||||
|
|
Loading…
Add table
Reference in a new issue