diff --git a/default.latex b/default.latex index d18bfc625..fc50a653a 100644 --- a/default.latex +++ b/default.latex @@ -1,15 +1,26 @@ \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$} \usepackage{amssymb,amsmath} \usepackage{ifxetex,ifluatex} -\ifxetex - \usepackage{fontspec,xltxtra,xunicode} +\newcommand{\SetupFonts}{% \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} \newcommand{\euro}{€} + $if(romanfont)$ + \setromanfont{$romanfont$} + $endif$ + $if(sansfont)$ + \setsansfont{$sansfont$} + $endif$ + $if(monofont)$ + \setmonofont{$monofont$} + $endif$ +} +\ifxetex + \usepackage{fontspec,xltxtra,xunicode} + \SetupFonts \else \ifluatex \usepackage{fontspec} - \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} - \newcommand{\euro}{€} + \SetupFonts \else \usepackage[utf8]{inputenc} \usepackage{eurosym}