aboutsummaryrefslogtreecommitdiff
path: root/tests/lhs-test.latex+lhs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-06-05 22:25:54 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-06-05 22:25:54 -0700
commit3982aaaed6ab92d54da64ff8cee6758f21739ec8 (patch)
tree322f021ecad5ef840cff89a3f685d9d59992c588 /tests/lhs-test.latex+lhs
parentba4cab2b35390cbcb477687a9a95a8af5439009e (diff)
downloadpandoc-3982aaaed6ab92d54da64ff8cee6758f21739ec8.tar.gz
Updated tests for changes in LaTeX changes.
Diffstat (limited to 'tests/lhs-test.latex+lhs')
-rw-r--r--tests/lhs-test.latex+lhs15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs
index a5250e6ee..c1690a958 100644
--- a/tests/lhs-test.latex+lhs
+++ b/tests/lhs-test.latex+lhs
@@ -2,16 +2,15 @@
\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}
-\else
+\else % if luatex or xelatex
\usepackage{fontspec}
- \ifXeTeX
+ \ifxetex
\usepackage{xltxtra,xunicode}
\fi
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
@@ -19,7 +18,7 @@
\fi
\usepackage{listings}
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
-\ifXeTeX
+\ifxetex
\usepackage[setpagesize=false, % page size defined by xetex
unicode=false, % unicode breaks when used with xetex
xetex]{hyperref}