From a053c6d1b072f080bb13bc1a479ac6db7dd2b154 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 22 Jul 2011 12:50:31 -0700 Subject: Use iftex to detect luatex, xetex, ... --- latex.template | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/latex.template b/latex.template index ffd1c34e6..8ecc73c1f 100644 --- a/latex.template +++ b/latex.template @@ -1,18 +1,18 @@ \documentclass$if(fontsize)$[$fontsize$]$endif${article} \usepackage{amssymb,amsmath} -$if(xetex)$ -\usepackage{ifxetex} -\ifxetex +\usepackage{iftex} +\ifXeTeX \usepackage{fontspec,xltxtra,xunicode} \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} \else - \usepackage[mathletters]{ucs} - \usepackage[utf8x]{inputenc} + \ifLuaTeX + \usepackage{fontspec} + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} + \else + \usepackage[mathletters]{ucs} + \usepackage[utf8x]{inputenc} + \fi \fi -$else$ -\usepackage[mathletters]{ucs} -\usepackage[utf8x]{inputenc} -$endif$ $if(natbib)$ \usepackage{natbib} \bibliographystyle{plainnat} -- cgit v1.2.3