aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-07-22 12:50:31 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2011-07-22 12:50:31 -0700
commita053c6d1b072f080bb13bc1a479ac6db7dd2b154 (patch)
tree83380ab5d6ecc2c0c082b042ab4b2b8d8cbaadd7
parentd19a3dcab50874bb06f351d4b6989270b3df25d8 (diff)
downloadpandoc-a053c6d1b072f080bb13bc1a479ac6db7dd2b154.tar.gz
Use iftex to detect luatex, xetex, ...
-rw-r--r--latex.template18
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}