aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-06-05 22:21:41 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-06-05 22:21:41 -0700
commitba5f9741a1f96e521bdfbac3795524b83645e8fb (patch)
treee2ef0da4a7ced4167e8ffc45083979be8eb188ee
parent8806382b9a6dafc3e19309ea40bbaf0800771e97 (diff)
downloadpandoc-ba5f9741a1f96e521bdfbac3795524b83645e8fb.tar.gz
LaTeX template: use ifxetex, ifluatex instead of iftex.
iftex is not in debian.
-rw-r--r--default.latex17
1 files changed, 8 insertions, 9 deletions
diff --git a/default.latex b/default.latex
index 7d34b7726..a27f17068 100644
--- a/default.latex
+++ b/default.latex
@@ -2,19 +2,18 @@
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
-\usepackage{iftex}
+\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
-\ifPDFTeX % use microtype with pdflatex if available
- \IfFileExists{microtype.sty}{\usepackage{microtype}}{}
-\fi
-\ifPDFTeX
+% use microtype if available
+\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[utf8]{inputenc}
$if(euro)$
\usepackage{eurosym}
$endif$
-\else
+\else % if luatex or xelatex
\usepackage{fontspec}
- \ifXeTeX
+ \ifxetex
\usepackage{xltxtra,xunicode}
\fi
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
@@ -82,7 +81,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}
@@ -117,7 +116,7 @@ $if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(lang)$
-\ifXeTeX
+\ifxetex
\usepackage{polyglossia}
\setmainlanguage{$mainlang$}
\else