summaryrefslogtreecommitdiff
path: root/tests/lhs-test.latex+lhs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-01-19 11:43:30 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-01-19 11:43:30 -0800
commit9a739e30bfb979bf94084ada114ca80a0f793b6c (patch)
tree79af5775c57ae9e154b3d1b268eb3123aefe77d6 /tests/lhs-test.latex+lhs
parent933cdaf4c88b2b5aa45bd2f09b71e8d28b605a10 (diff)
Fixed problem with strikout in LaTeX headers with hyperref.
Added a command to the latex template to disable \sout inside pdf strings. Thanks to Joost Kremers for the fix.
Diffstat (limited to 'tests/lhs-test.latex+lhs')
-rw-r--r--tests/lhs-test.latex+lhs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs
index 29237f820..238a045ba 100644
--- a/tests/lhs-test.latex+lhs
+++ b/tests/lhs-test.latex+lhs
@@ -5,6 +5,8 @@
\usepackage{listings}
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
\usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref}
+% avoid problems with \sout in headers with hyperref:
+\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setcounter{secnumdepth}{0}