aboutsummaryrefslogtreecommitdiff
path: root/templates/latex.template
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-01-21 19:24:00 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-01-21 19:24:00 -0800
commit654c39a7d2de17149feb180703f371f2f54e41a5 (patch)
tree94857dd4511a5e3f0d33c4499d2db10a628e771a /templates/latex.template
parentd0726920db29fee60f09c45be2974bf8d9eb464f (diff)
downloadpandoc-654c39a7d2de17149feb180703f371f2f54e41a5.tar.gz
latex template: move special treatment of \sout.
It needs to be inside the if(strikeout) condition, after the ulem package is imported; otherwise we try to renewcommand{\sout} when \sout isn't yet defined.
Diffstat (limited to 'templates/latex.template')
-rw-r--r--templates/latex.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/latex.template b/templates/latex.template
index c01f58b45..8d21cf215 100644
--- a/templates/latex.template
+++ b/templates/latex.template
@@ -47,6 +47,8 @@ $if(tables)$
$endif$
$if(strikeout)$
\usepackage[normalem]{ulem}
+% avoid problems with \sout in headers with hyperref:
+\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
$if(subscript)$
\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
@@ -67,8 +69,6 @@ $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)$