From 951b0ca035245e29a09a64056fe3aaae1c679cd3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 23 Jul 2011 09:43:38 -0700 Subject: LaTeX template: moved command to avoid error. CircleCode pointed out that \pdfstringdefDisableCommands{\renewcommand{\sout}{}} needs to come after hyperref is included in the template. --- default.latex | 16 ++++++++-------- 1 file 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 -- cgit v1.2.3