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.
This commit is contained in:
parent
933cdaf4c8
commit
9a739e30bf
7 changed files with 14 additions and 0 deletions
|
@ -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)$
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
\usepackage{biblatex}
|
||||
\bibliography{biblio}
|
||||
\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}
|
||||
\setcounter{secnumdepth}{0}
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
\newcommand{\textsubscript}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
|
||||
\usepackage[breaklinks=true,unicode=true]{hyperref}
|
||||
% avoid problems with \sout in headers with hyperref:
|
||||
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
|
||||
\usepackage[normalem]{ulem}
|
||||
\usepackage{enumerate}
|
||||
\usepackage{fancyvrb}
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
\usepackage[mathletters]{ucs}
|
||||
\usepackage[utf8x]{inputenc}
|
||||
\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}
|
||||
\setcounter{secnumdepth}{0}
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
\usepackage{listings}
|
||||
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
|
||||
\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}
|
||||
\setcounter{secnumdepth}{0}
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
\usepackage{natbib}
|
||||
\bibliographystyle{plainnat}
|
||||
\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}
|
||||
\setcounter{secnumdepth}{0}
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
\let\Oldincludegraphics\includegraphics
|
||||
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
|
||||
\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}
|
||||
\setcounter{secnumdepth}{0}
|
||||
|
|
Loading…
Reference in a new issue