aboutsummaryrefslogtreecommitdiff
path: root/tests/writer.latex
diff options
context:
space:
mode:
Diffstat (limited to 'tests/writer.latex')
-rw-r--r--tests/writer.latex17
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/writer.latex b/tests/writer.latex
index b13f93ac4..19a8753f5 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -1,7 +1,18 @@
\documentclass{article}
\usepackage{amssymb,amsmath}
-\usepackage[mathletters]{ucs}
-\usepackage[utf8x]{inputenc}
+\usepackage{iftex}
+\ifXeTeX
+ \usepackage{fontspec,xltxtra,xunicode}
+ \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
+\else
+ \ifLuaTeX
+ \usepackage{fontspec}
+ \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
+ \else
+ \usepackage[mathletters]{ucs}
+ \usepackage[utf8x]{inputenc}
+ \fi
+\fi
\usepackage{fancyvrb}
% Redefine labelwidth for lists; otherwise, the enumerate package will cause
% markers to extend beyond the left margin.
@@ -28,7 +39,7 @@
\usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
-\setlength{\emergencystretch}{3em} -- prevent overfull lines
+\setlength{\emergencystretch}{3em} % prevent overfull lines
\setcounter{secnumdepth}{0}
\VerbatimFootnotes % allows verbatim text in footnotes