feat: redesign title page

Change spacing between some of the elements and remove the
zero-height vbox that previously stored the titlegraphic.
Closes #10.
This commit is contained in:
Johan Larsson 2024-03-04 14:38:49 +01:00
parent 5477051298
commit 9e6506eccd
1 changed files with 10 additions and 11 deletions

View File

@ -112,9 +112,9 @@
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{title page}{ \setbeamertemplate{title page}{
\begin{minipage}[b][\paperheight]{\textwidth} \begin{minipage}[b][\paperheight]{\textwidth}
\ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi
\null% \null%
\vfill% \vfill%
\ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi
\ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi \ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi
\ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi \ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi
\usebeamertemplate*{title separator} \usebeamertemplate*{title separator}
@ -161,11 +161,9 @@
% position of other elements. % position of other elements.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{title graphic}{ \setbeamertemplate{title graphic}{
\vbox to 0pt {
\vspace*{2em}
\inserttitlegraphic% \inserttitlegraphic%
}% \par%
\nointerlineskip% \vspace*{1em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -177,7 +175,7 @@
\raggedright% \raggedright%
\inserttitle% \inserttitle%
\par% \par%
\vspace*{0.5em} \vspace*{0.2em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -189,7 +187,7 @@
\raggedright% \raggedright%
\insertsubtitle% \insertsubtitle%
\par% \par%
\vspace*{0.5em} \vspace*{0.2em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -207,6 +205,7 @@
\end{tikzpicture}% \end{tikzpicture}%
\tikzexternalenable% \tikzexternalenable%
\par% \par%
\vspace*{0.8em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -215,9 +214,10 @@
% Set the author on the title page. % Set the author on the title page.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{author}{ \setbeamertemplate{author}{
\vspace*{2em} \raggedright%
\insertauthor% \insertauthor%
\par% \par%
\vspace*{0.5em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -226,9 +226,9 @@
% Set the institute on the title page. % Set the institute on the title page.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{institute}{ \setbeamertemplate{institute}{
\vspace*{0.5em}
\insertinstitute% \insertinstitute%
\par% \par%
\vspace*{1em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -238,7 +238,6 @@
% Set the date on the title page. % Set the date on the title page.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{date}{ \setbeamertemplate{date}{
\vspace*{1.5em}
\insertdate% \insertdate%
\par% \par%
} }