diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-07-22 12:50:31 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-07-22 12:50:31 -0700 |
commit | a053c6d1b072f080bb13bc1a479ac6db7dd2b154 (patch) | |
tree | 83380ab5d6ecc2c0c082b042ab4b2b8d8cbaadd7 | |
parent | d19a3dcab50874bb06f351d4b6989270b3df25d8 (diff) | |
download | pandoc-a053c6d1b072f080bb13bc1a479ac6db7dd2b154.tar.gz |
Use iftex to detect luatex, xetex, ...
-rw-r--r-- | latex.template | 18 |
1 files 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} |