aboutsummaryrefslogtreecommitdiff
path: root/tests/lhs-test.latex+lhs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lhs-test.latex+lhs')
-rw-r--r--tests/lhs-test.latex+lhs11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs
index 94f8db9f7..4d36dc532 100644
--- a/tests/lhs-test.latex+lhs
+++ b/tests/lhs-test.latex+lhs
@@ -1,21 +1,20 @@
\documentclass{article}
\usepackage{amssymb,amsmath}
-\usepackage{iftex}
-\ifXeTeX
+\usepackage{ifxetex,ifluatex}
+\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
- \ifLuaTeX
+ \ifluatex
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
- \usepackage[mathletters]{ucs}
- \usepackage[utf8x]{inputenc}
+ \usepackage[utf8]{inputenc}
\fi
\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}