diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-19 11:43:30 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-19 11:43:30 -0800 |
commit | 9a739e30bfb979bf94084ada114ca80a0f793b6c (patch) | |
tree | 79af5775c57ae9e154b3d1b268eb3123aefe77d6 | |
parent | 933cdaf4c88b2b5aa45bd2f09b71e8d28b605a10 (diff) | |
download | pandoc-9a739e30bfb979bf94084ada114ca80a0f793b6c.tar.gz |
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.
-rw-r--r-- | templates/latex.template | 2 | ||||
-rw-r--r-- | tests/biblatex-citations.latex | 2 | ||||
-rw-r--r-- | tests/latex-reader.latex | 2 | ||||
-rw-r--r-- | tests/lhs-test.latex | 2 | ||||
-rw-r--r-- | tests/lhs-test.latex+lhs | 2 | ||||
-rw-r--r-- | tests/natbib-citations.latex | 2 | ||||
-rw-r--r-- | tests/writer.latex | 2 |
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} |