aboutsummaryrefslogtreecommitdiff
path: root/tests/lhs-test.latex
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lhs-test.latex')
-rw-r--r--tests/lhs-test.latex44
1 files changed, 27 insertions, 17 deletions
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex
index 4bb2ab1a6..d2d1f9ab8 100644
--- a/tests/lhs-test.latex
+++ b/tests/lhs-test.latex
@@ -1,16 +1,20 @@
\documentclass[]{article}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
-\ifxetex
- \usepackage{fontspec,xltxtra,xunicode}
- \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
-\else
- \ifluatex
- \usepackage{fontspec}
- \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
- \else
- \usepackage[utf8]{inputenc}
+\usepackage{fixltx2e} % provides \textsubscript
+% use microtype if available
+\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+ \usepackage[utf8]{inputenc}
+\else % if luatex or xelatex
+ \usepackage{fontspec}
+ \ifxetex
+ \usepackage{xltxtra,xunicode}
\fi
+ \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
+ \newcommand{\euro}{€}
\fi
\usepackage{color}
\usepackage{fancyvrb}
@@ -35,20 +39,25 @@
\ifxetex
\usepackage[setpagesize=false, % page size defined by xetex
unicode=false, % unicode breaks when used with xetex
- xetex,
- colorlinks=true,
- linkcolor=blue]{hyperref}
+ xetex]{hyperref}
\else
- \usepackage[unicode=true,
- colorlinks=true,
- linkcolor=blue]{hyperref}
+ \usepackage[unicode=true]{hyperref}
\fi
-\hypersetup{breaklinks=true, pdfborder={0 0 0}}
+\hypersetup{breaklinks=true,
+ bookmarks=true,
+ pdfauthor={},
+ pdftitle={},
+ colorlinks=true,
+ urlcolor=blue,
+ linkcolor=magenta,
+ pdfborder={0 0 0}}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\setcounter{secnumdepth}{0}
+\author{}
+\date{}
\begin{document}
@@ -64,6 +73,7 @@ return a single value:
\CommentTok{-- arr (\textbackslash{}op (x,y) -> x `op` y) }
\end{Highlighting}
\end{Shaded}
+
\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).
@@ -71,11 +81,11 @@ the second item of the pair).
\begin{verbatim}
f *** g = first f >>> second g
\end{verbatim}
+
Block quote:
\begin{quote}
foo bar
-
\end{quote}
\end{document}