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.
This commit is contained in:
parent
8519808e47
commit
cae52f92dd
1 changed files with 5 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue