aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-03-13 17:18:31 -0700
committerJohn MacFarlane <[email protected]>2022-03-13 17:18:31 -0700
commit8d3959ea295a1c4837a7b735e01f850a07ee256e (patch)
tree25242b6394725ae539f10ef0196b3d08de5d2783
parent6328ac5097ac98b3093aa17c15a1eaf61d484629 (diff)
Remove special redefinition of `\sout`.
This used to be necessary to avoid problems with hyperref, when headings contain strikeout text, but it does not seem to be necessary any more (tested).
-rw-r--r--data/templates/default.latex2
-rw-r--r--test/lhs-test.latex2
-rw-r--r--test/lhs-test.latex+lhs2
-rw-r--r--test/writer.latex2
-rw-r--r--test/writers-lang-and-dir.latex2
5 files changed, 0 insertions, 10 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index aa262ee80..c25f75ff0 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -381,8 +381,6 @@ $if(csquotes)$
\usepackage{csquotes}
$endif$
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
diff --git a/test/lhs-test.latex b/test/lhs-test.latex
index 4ec0133db..a83e31202 100644
--- a/test/lhs-test.latex
+++ b/test/lhs-test.latex
@@ -81,8 +81,6 @@
\usepackage{selnolig} % disable illegal ligatures
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\hypersetup{
hidelinks,
pdfcreator={LaTeX via pandoc}}
diff --git a/test/lhs-test.latex+lhs b/test/lhs-test.latex+lhs
index 24bcc255d..54af9388f 100644
--- a/test/lhs-test.latex+lhs
+++ b/test/lhs-test.latex+lhs
@@ -48,8 +48,6 @@
\usepackage{selnolig} % disable illegal ligatures
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\hypersetup{
hidelinks,
pdfcreator={LaTeX via pandoc}}
diff --git a/test/writer.latex b/test/writer.latex
index 0074b7b1d..554efc7b6 100644
--- a/test/writer.latex
+++ b/test/writer.latex
@@ -59,8 +59,6 @@
\usepackage{selnolig} % disable illegal ligatures
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\hypersetup{
pdftitle={Pandoc Test Suite},
pdfauthor={John MacFarlane; Anonymous},
diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex
index 8a5301085..eb466c266 100644
--- a/test/writers-lang-and-dir.latex
+++ b/test/writers-lang-and-dir.latex
@@ -64,8 +64,6 @@
\newenvironment{LTR}{\beginL}{\endL}
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\hypersetup{
pdflang={en},
hidelinks,