summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorVáclav Haisman <vhaisman@gmail.com>2017-05-09 22:09:10 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-05-09 22:09:10 +0200
commit7bdf38ef2eb39e552a0825436dc8bdfa5507e245 (patch)
tree7e35e0706fafdb203390f62179680c049393e9ba /data
parent5048be51129bd195bcbe5e1d469fb895c9d4c5f8 (diff)
LaTeX: Load `parskip` before `hyperref`. (#3654)
* LaTeX: Load `parskip` before `hyperref`. According to `hyperref` package's `README.pdf`, page 22, `hyperref` package should be loaded after `parskip` package. * Adjust tests for previous change.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex18
1 files changed, 9 insertions, 9 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index de55d69db..7630d34f4 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -69,6 +69,15 @@ $endif$
\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
+$if(indent)$
+$else$
+\IfFileExists{parskip.sty}{%
+\usepackage{parskip}
+}{% else
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{6pt plus 2pt minus 1pt}
+}
+$endif$
\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
$if(verbatim-in-note)$
\usepackage{fancyvrb}
@@ -162,15 +171,6 @@ $if(strikeout)$
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
-$if(indent)$
-$else$
-\IfFileExists{parskip.sty}{%
-\usepackage{parskip}
-}{% else
-\setlength{\parindent}{0pt}
-\setlength{\parskip}{6pt plus 2pt minus 1pt}
-}
-$endif$
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}