git.iko.soy/typeable/pandoc
on master help sign in
LaTeX: Load geometry package after hyperref.
cae52f9Vaclav Haisman
default.latex+5−3
@@ -57,9 +57,6 @@ $endif$
57\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
57\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
58\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
58\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
59}{}
59}{}
60−$if(geometry)$
61−\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
62−$endif$
63\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
60\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
64$if(verbatim-in-note)$
61$if(verbatim-in-note)$
65\usepackage{fancyvrb}
62\usepackage{fancyvrb}
@@ -91,6 +88,11 @@ $endif$
91$if(verbatim-in-note)$
88$if(verbatim-in-note)$
92\VerbatimFootnotes % allows verbatim text in footnotes
89\VerbatimFootnotes % allows verbatim text in footnotes
93$endif$
90$endif$
91+$if(geometry)$
92+% With mag ≠ 1000, no truedimen and hyperref, hyperref should be loaded before
93+% geometry. Otherwise the resulted PDF size will become wrong.
94+\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
95+$endif$
94$if(lang)$
96$if(lang)$
95\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
97\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
96 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
98 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}