aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaclav Haisman <vhaisman@gmail.com>2017-01-28 10:52:13 +0100
committerVaclav Haisman <vhaisman@gmail.com>2017-01-28 10:52:13 +0100
commitcae52f92dd8957130a1b502d98ba00bfe47c6730 (patch)
treee0a6596398fef6ee1a077e6cfd9fcf51bad41006
parent8519808e475a379383244e093aab2326be57c3d8 (diff)
downloadpandoc-cae52f92dd8957130a1b502d98ba00bfe47c6730.tar.gz
LaTeX: Load geometry package after hyperref.
This implements suggestion from geometry package manual section 9 Known problems: > With mag ≠ 1000, no truedimen and hyperref, hyperref should be loaded > before geometry. Otherwise the resulted PDF size will become wrong.
-rw-r--r--default.latex8
1 files changed, 5 insertions, 3 deletions
diff --git a/default.latex b/default.latex
index 585979690..9c50bc4b6 100644
--- a/default.latex
+++ b/default.latex
@@ -57,9 +57,6 @@ $endif$
\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
-$if(geometry)$
-\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
-$endif$
\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
$if(verbatim-in-note)$
\usepackage{fancyvrb}
@@ -91,6 +88,11 @@ $endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
+$if(geometry)$
+% With mag ≠ 1000, no truedimen and hyperref, hyperref should be loaded before
+% geometry. Otherwise the resulted PDF size will become wrong.
+\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
+$endif$
$if(lang)$
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}