From cae52f92dd8957130a1b502d98ba00bfe47c6730 Mon Sep 17 00:00:00 2001 From: Vaclav Haisman Date: Sat, 28 Jan 2017 10:52:13 +0100 Subject: LaTeX: Load geometry package after hyperref. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- default.latex | 8 +++++--- 1 file 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} -- cgit v1.2.3 From f3edd225aa36f2b2636ec393c887233488cab631 Mon Sep 17 00:00:00 2001 From: Vaclav Haisman Date: Sat, 28 Jan 2017 15:18:11 +0100 Subject: Redact comment. --- default.latex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/default.latex b/default.latex index 9c50bc4b6..284b3d83f 100644 --- a/default.latex +++ b/default.latex @@ -89,8 +89,7 @@ $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. +% hyperref should be loaded before geometry \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} $endif$ $if(lang)$ -- cgit v1.2.3 From 247b3a251c36b469871e16abd6b02615cfc483c3 Mon Sep 17 00:00:00 2001 From: Vaclav Haisman Date: Sun, 29 Jan 2017 11:13:06 +0100 Subject: LaTeX: Remove comment entirely. Remove comment about `geometry` and `hyperref` entirely. --- default.latex | 1 - 1 file changed, 1 deletion(-) diff --git a/default.latex b/default.latex index 284b3d83f..128f79d8d 100644 --- a/default.latex +++ b/default.latex @@ -89,7 +89,6 @@ $if(verbatim-in-note)$ \VerbatimFootnotes % allows verbatim text in footnotes $endif$ $if(geometry)$ -% hyperref should be loaded before geometry \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} $endif$ $if(lang)$ -- cgit v1.2.3