diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-07-23 09:43:38 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-07-23 09:43:38 -0700 |
commit | 951b0ca035245e29a09a64056fe3aaae1c679cd3 (patch) | |
tree | f9a9b375172213ff8c45acdfd22269a7e0b6b857 | |
parent | 663adaa8612242dfce8c32ae5c7afc6be45c6eb6 (diff) | |
download | pandoc-951b0ca035245e29a09a64056fe3aaae1c679cd3.tar.gz |
LaTeX template: moved command to avoid error.
CircleCode pointed out that
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
needs to come after hyperref is included in the template.
-rw-r--r-- | default.latex | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/default.latex b/default.latex index 8ecc73c1f..bd9af92e0 100644 --- a/default.latex +++ b/default.latex @@ -43,14 +43,6 @@ $if(tables)$ \usepackage{ctable} \usepackage{float} % provides the H option for float placement $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}}}} -$endif$ $if(url)$ \usepackage{url} $endif$ @@ -67,6 +59,14 @@ $if(graphics)$ \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}} $endif$ \usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref} +$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}}}} +$endif$ \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 2pt minus 1pt} \setlength{\emergencystretch}{3em} % prevent overfull lines |