summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/lhs-test.latex5
-rw-r--r--tests/lhs-test.latex+lhs5
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex
index 6600608fe..6f2fdfb77 100644
--- a/tests/lhs-test.latex
+++ b/tests/lhs-test.latex
@@ -19,7 +19,10 @@
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
-\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
+\IfFileExists{microtype.sty}{%
+\usepackage{microtype}
+\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
+}{}
\usepackage{color}
\usepackage{fancyvrb}
\newcommand{\VerbBar}{|}
diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs
index d6cb7c497..77f0e08ff 100644
--- a/tests/lhs-test.latex+lhs
+++ b/tests/lhs-test.latex+lhs
@@ -19,7 +19,10 @@
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
-\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
+\IfFileExists{microtype.sty}{%
+\usepackage{microtype}
+\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
+}{}
\usepackage{listings}
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
\ifxetex