mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-14 03:25:51 +00:00
LaTeX template: moved command to avoid error.
CircleCode pointed out that
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
needs to come after hyperref is included in the template.
This commit is contained in:
+8
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user