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+lhs44
1 files changed, 10 insertions, 34 deletions
diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs
index 7c293b2e6..471c9698b 100644
--- a/tests/lhs-test.latex+lhs
+++ b/tests/lhs-test.latex+lhs
@@ -12,8 +12,7 @@
\else
\usepackage{fontspec}
\fi
- \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
- \newcommand{\euro}{€}
+ \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
\fi
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
@@ -22,32 +21,10 @@
\usepackage{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
-\makeatletter
-\@ifpackageloaded{hyperref}{}{%
-\ifxetex
- \usepackage[setpagesize=false, % page size defined by xetex
- unicode=false, % unicode breaks when used with xetex
- xetex]{hyperref}
-\else
- \usepackage[unicode=true]{hyperref}
-\fi
-}
-\@ifpackageloaded{color}{
- \PassOptionsToPackage{usenames,dvipsnames}{color}
-}{%
- \usepackage[usenames,dvipsnames]{color}
-}
-\makeatother
-\hypersetup{breaklinks=true,
- bookmarks=true,
- pdfauthor={},
- pdftitle={},
- colorlinks=true,
- citecolor=blue,
- urlcolor=blue,
- linkcolor=magenta,
- pdfborder={0 0 0}
- }
+\usepackage{hyperref}
+\hypersetup{unicode=true,
+ pdfborder={0 0 0},
+ breaklinks=true}
\urlstyle{same} % don't use monospace font for urls
\usepackage{listings}
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
@@ -57,9 +34,6 @@
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{0}
-
-\date{}
-
% Redefines (sub)paragraphs to behave more like sections
\ifx\paragraph\undefined\else
\let\oldparagraph\paragraph
@@ -70,6 +44,8 @@
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
\fi
+\date{}
+
\begin{document}
\section{lhs test}\label{lhs-test}
@@ -83,9 +59,9 @@ unsplit = arr . uncurry
-- arr (\op (x,y) -> x `op` y)
\end{code}
-\texttt{(***)} combines two arrows into a new arrow by running the two arrows
-on a pair of values (one arrow on the first item of the pair and one arrow on
-the second item of the pair).
+\texttt{(***)} combines two arrows into a new arrow by running the two arrows on a
+pair of values (one arrow on the first item of the pair and one arrow on the
+second item of the pair).
\begin{verbatim}
f *** g = first f >>> second g