From 85eabc7beef4296dcc7a7ac53eb0f7a785fe8c35 Mon Sep 17 00:00:00 2001 From: Johan Larsson Date: Mon, 2 Dec 2024 07:30:29 +0100 Subject: [PATCH] feat: use golden rule in top-bottom spacing of title page Use the golden rule to set top and bottom spacing for the title page. This closes #29. --- src/beamerinnerthememoloch.dtx | 9 ++++----- testfiles/sectionpages.tlg | 17 ----------------- testfiles/test.tlg | 16 ++++++++-------- 3 files changed, 12 insertions(+), 30 deletions(-) diff --git a/src/beamerinnerthememoloch.dtx b/src/beamerinnerthememoloch.dtx index ba30315..bc77bb0 100644 --- a/src/beamerinnerthememoloch.dtx +++ b/src/beamerinnerthememoloch.dtx @@ -140,12 +140,11 @@ % space on the title slide. % \begin{macrocode} \setbeamertemplate{title page}{ - \begin{minipage}[b][\paperheight]{\textwidth} + \begin{minipage}[c][\textheight]{\textwidth} \null% + \vspace{0pt plus 1.618fil}% \vfil% - \ifx\inserttitlegraphic\@empty% - \else\usebeamertemplate*{title graphic}% - \fi + \ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi \ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi \ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi \usebeamertemplate*{title separator} @@ -154,7 +153,7 @@ } \ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi \ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi - \vfil% + \vspace{0pt plus 1fil}% \null \end{minipage}% } diff --git a/testfiles/sectionpages.tlg b/testfiles/sectionpages.tlg index cf08c1d..6a35284 100644 --- a/testfiles/sectionpages.tlg +++ b/testfiles/sectionpages.tlg @@ -2,23 +2,6 @@ This is a generated file for the l3build validation system. Don't change this file in any respect. [2 ] -LaTeX Font Info: Trying to load font information for OML+lmm on input line .... -LaTeX Font Info: Trying to load font information for OMS+lmsy on input line .... -LaTeX Font Info: Trying to load font information for OMX+lmex on input line .... -LaTeX Font Info: External font `lmex10' loaded for size -(Font) <10.95> on input line .... -LaTeX Font Info: External font `lmex10' loaded for size -(Font) <8> on input line .... -LaTeX Font Info: External font `lmex10' loaded for size -(Font) <6> on input line .... -LaTeX Font Info: Trying to load font information for U+msa on input line .... -LaTeX Font Info: Trying to load font information for U+msb on input line .... -LaTeX Font Info: Font shape `OT1/lmss/m/it' in size <10.95> not available -(Font) Font shape `OT1/lmss/m/sl' tried instead on input line .... -LaTeX Font Info: Font shape `OT1/lmss/m/it' in size <8> not available -(Font) Font shape `OT1/lmss/m/sl' tried instead on input line .... -LaTeX Font Info: Font shape `OT1/lmss/m/it' in size <6> not available -(Font) Font shape `OT1/lmss/m/sl' tried instead on input line .... [3 ] [4 diff --git a/testfiles/test.tlg b/testfiles/test.tlg index 4d68078..5b7d5d0 100644 --- a/testfiles/test.tlg +++ b/testfiles/test.tlg @@ -1,6 +1,6 @@ This is a generated file for the l3build validation system. Don't change this file in any respect. -No file test.toc. +(test.toc) Completed box being shipped out [1] \vbox(200.87663+0.0)x263.47263 .\hbox(0.0+0.0)x0.0 @@ -233,7 +233,7 @@ Completed box being shipped out [1] ..........\hbox(7.9375+0.0)x364.19536 ...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG} ...........\vbox(7.9375+0.0)x364.19536 -............\hbox(3.9375+0.0)x364.19536, glue set 345.63286fill +............\hbox(3.9375+0.0)x364.19536, glue set 352.00786fill .............\glue(\leftskip) 4.0 .............\hbox(0.0+0.0)x0.0 .............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG} @@ -241,7 +241,7 @@ Completed box being shipped out [1] .............\pdfcolorstack 0 pop .............\glue 0.0 plus 1.0fill .............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG} -.............\hbox(3.9375+0.0)x9.5625, glue set 6.375fil +.............\hbox(3.9375+0.0)x3.1875 ..............\glue 0.0 plus 1.0fil minus 1.0fil ..............\OT1/lmss/m/n/6 1 .............\pdfcolorstack 0 pop @@ -424,10 +424,10 @@ Completed box being shipped out [2] ...........\pdfliteral{0.0 0.0 m } ...........\pdfliteral{0.0 0.0 m } ...........\pdfliteral{0.0 0.3985 l } -...........\pdfliteral{2.40958 0.3985 l } -...........\pdfliteral{2.40958 0.0 l } +...........\pdfliteral{120.54582 0.3985 l } +...........\pdfliteral{120.54582 0.0 l } ...........\pdfliteral{h } -...........\pdfliteral{2.40958 0.3985 m } +...........\pdfliteral{120.54582 0.3985 m } ...........\pdfliteral{f } ...........\glue 0.0 ...........\pdfcolorstack 0 pop @@ -1241,7 +1241,7 @@ Completed box being shipped out [3] ..........\hbox(7.9375+0.0)x364.19536 ...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG} ...........\vbox(7.9375+0.0)x364.19536 -............\hbox(3.9375+0.0)x364.19536, glue set 345.63286fill +............\hbox(3.9375+0.0)x364.19536, glue set 352.00786fill .............\glue(\leftskip) 4.0 .............\hbox(0.0+0.0)x0.0 .............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG} @@ -1249,7 +1249,7 @@ Completed box being shipped out [3] .............\pdfcolorstack 0 pop .............\glue 0.0 plus 1.0fill .............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG} -.............\hbox(3.9375+0.0)x9.5625, glue set 6.375fil +.............\hbox(3.9375+0.0)x3.1875 ..............\glue 0.0 plus 1.0fil minus 1.0fil ..............\OT1/lmss/m/n/6 2 .............\pdfcolorstack 0 pop