From 9a739e30bfb979bf94084ada114ca80a0f793b6c Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Wed, 19 Jan 2011 11:43:30 -0800
Subject: 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.
---
 tests/lhs-test.latex+lhs | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'tests/lhs-test.latex+lhs')

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}
-- 
cgit v1.2.3