aboutsummaryrefslogtreecommitdiff
path: root/default.latex
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-07-29 23:48:36 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2011-07-29 23:48:36 -0700
commit201b99a23906e8da10cc637778cd8029f038398b (patch)
tree3d469ce70a2b25e88a724bfda1ddf64081505ff8 /default.latex
parent88e782fa8ea90b175701a260054bb8e9500e7120 (diff)
downloadpandoc-201b99a23906e8da10cc637778cd8029f038398b.tar.gz
LaTeX: Use ifxetex and ifluatex instead of iftex package.
These are included in "core" latex distributions, like BasicTeX.
Diffstat (limited to 'default.latex')
-rw-r--r--default.latex9
1 files changed, 5 insertions, 4 deletions
diff --git a/default.latex b/default.latex
index addfea8c4..fb171d1a0 100644
--- a/default.latex
+++ b/default.latex
@@ -1,11 +1,12 @@
\documentclass$if(fontsize)$[$fontsize$]$endif${article}
\usepackage{amssymb,amsmath}
-\usepackage{iftex}
-\ifXeTeX
+\usepackage{ifxetex}
+\usepackage{ifluatex}
+\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
- \ifLuaTeX
+ \ifluatex
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
@@ -62,7 +63,7 @@ $if(graphics)$
\let\Oldincludegraphics\includegraphics
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
$endif$
-\ifXeTeX
+\ifxetex
\usepackage[setpagesize=false, % page size defined by xetex
unicode=false, % unicode breaks when used with xetex
xetex]{hyperref}