aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/latex.template2
-rw-r--r--tests/biblatex-citations.latex2
-rw-r--r--tests/latex-reader.latex2
-rw-r--r--tests/lhs-test.latex2
-rw-r--r--tests/lhs-test.latex+lhs2
-rw-r--r--tests/natbib-citations.latex2
-rw-r--r--tests/writer.latex2
7 files changed, 14 insertions, 0 deletions
diff --git a/templates/latex.template b/templates/latex.template
index e1dbdae83..c01f58b45 100644
--- a/templates/latex.template
+++ b/templates/latex.template
@@ -67,6 +67,8 @@ $if(graphics)$
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
$endif$
\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}
$if(numbersections)$
diff --git a/tests/biblatex-citations.latex b/tests/biblatex-citations.latex
index 97647cd41..08f49b056 100644
--- a/tests/biblatex-citations.latex
+++ b/tests/biblatex-citations.latex
@@ -5,6 +5,8 @@
\usepackage{biblatex}
\bibliography{biblio}
\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}
diff --git a/tests/latex-reader.latex b/tests/latex-reader.latex
index 3f17c0e6b..26715da7a 100644
--- a/tests/latex-reader.latex
+++ b/tests/latex-reader.latex
@@ -6,6 +6,8 @@
\newcommand{\textsubscript}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
\usepackage[breaklinks=true,unicode=true]{hyperref}
+% avoid problems with \sout in headers with hyperref:
+\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\usepackage[normalem]{ulem}
\usepackage{enumerate}
\usepackage{fancyvrb}
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex
index d34c21090..3c5aba598 100644
--- a/tests/lhs-test.latex
+++ b/tests/lhs-test.latex
@@ -3,6 +3,8 @@
\usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc}
\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}
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}
diff --git a/tests/natbib-citations.latex b/tests/natbib-citations.latex
index f4f5cf452..fdb4e14fc 100644
--- a/tests/natbib-citations.latex
+++ b/tests/natbib-citations.latex
@@ -5,6 +5,8 @@
\usepackage{natbib}
\bibliographystyle{plainnat}
\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}
diff --git a/tests/writer.latex b/tests/writer.latex
index eb4012749..0337cb56c 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -24,6 +24,8 @@
\let\Oldincludegraphics\includegraphics
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
\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}