diff options
author | Václav Haisman <vhaisman@gmail.com> | 2017-05-09 22:09:10 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-05-09 22:09:10 +0200 |
commit | 7bdf38ef2eb39e552a0825436dc8bdfa5507e245 (patch) | |
tree | 7e35e0706fafdb203390f62179680c049393e9ba /test/lhs-test.latex+lhs | |
parent | 5048be51129bd195bcbe5e1d469fb895c9d4c5f8 (diff) | |
download | pandoc-7bdf38ef2eb39e552a0825436dc8bdfa5507e245.tar.gz |
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 'test/lhs-test.latex+lhs')
-rw-r--r-- | test/lhs-test.latex+lhs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lhs-test.latex+lhs b/test/lhs-test.latex+lhs index b0a58ac78..4aac4c7bb 100644 --- a/test/lhs-test.latex+lhs +++ b/test/lhs-test.latex+lhs @@ -17,6 +17,12 @@ \usepackage[]{microtype} \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts }{} +\IfFileExists{parskip.sty}{% +\usepackage{parskip} +}{% else +\setlength{\parindent}{0pt} +\setlength{\parskip}{6pt plus 2pt minus 1pt} +} \PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref \usepackage[unicode=true]{hyperref} \hypersetup{ @@ -26,12 +32,6 @@ \usepackage{listings} \newcommand{\passthrough}[1]{#1} \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} -\IfFileExists{parskip.sty}{% -\usepackage{parskip} -}{% else -\setlength{\parindent}{0pt} -\setlength{\parskip}{6pt plus 2pt minus 1pt} -} \setlength{\emergencystretch}{3em} % prevent overfull lines \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} |