aboutsummaryrefslogtreecommitdiff
path: root/templates
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 /templates
parent933cdaf4c88b2b5aa45bd2f09b71e8d28b605a10 (diff)
downloadpandoc-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.
Diffstat (limited to 'templates')
-rw-r--r--templates/latex.template2
1 files changed, 2 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)$