From 4cf5cfc130aa98763139011acff4db1ee490b411 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Thu, 30 May 2024 20:58:48 +0200 Subject: [PATCH] moved constants out of command for potential customization --- psipresentation.cls | 72 +++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/psipresentation.cls b/psipresentation.cls index cb1d7e8..b019a28 100644 --- a/psipresentation.cls +++ b/psipresentation.cls @@ -102,25 +102,26 @@ BoldItalicFont = *-Bold-Italic % title page +\newcommand{\titletextleftedge}{0.056} + +\newcommand{\titlelogowidth}{0.14} +\newcommand{\titlelogoupperedge}{0.84} + +\newcommand{\titleboxheight}{0.27} + +\newcommand{\titleimageheight}{0.78} + +\newcommand{\ypostitle}{4.65} +\newcommand{\ypossubtitle}{3.8} +\newcommand{\yposauthor}{1.1} +\newcommand{\yposlocationdate}{0.75} + +\colorlet{authorfont}{white} +\colorlet{datefont}{white} + + \defbeamertemplate*{title page}{PSI}[1][] { - \newcommand{\titletextleftedge}{0.056} - - \newcommand{\titlelogowidth}{0.14} - \newcommand{\titlelogoupperedge}{0.84} - - \newcommand{\titleboxheight}{0.27} - - \newcommand{\titleimageheight}{0.78} - - \newcommand{\ypostitle}{4.65} - \newcommand{\ypossubtitle}{3.8} - \newcommand{\yposauthor}{1.1} - \newcommand{\yposlocationdate}{0.75} - - \colorlet{authorfont}{white} - \colorlet{datefont}{white} - \begin{tikzpicture}[overlay, remember picture, shift={(current page.south west)}] % use the whole page \ifx \inserttitleimage \empty @@ -190,28 +191,29 @@ BoldItalicFont = *-Bold-Italic % frame +\newcommand{\frametitlelogowidth}{0.075} +\newcommand{\frametitlelogoupperedge}{0.96} +\newcommand{\frametitlelogorightedge}{0.94} + +\newcommand{\frametitleupperedge}{0.95} +\newcommand{\frametitleleftedge}{0.055} +\newcommand{\frametitlespace}{0.75} + +\newcommand{\bottomupperedge}{0.06} +\newcommand{\bottomauthorleftedge}{\frametitleleftedge} +\newcommand{\bottominstituteleftedge}{0.12} +\newcommand{\bottomdaterightedge}{0.94} % 1 - 0.06 + +\colorlet{frametitlefont}{black} +\colorlet{bottomfont}{black} + + \setbeamertemplate{frametitle} { - \newcommand{\titlelogowidth}{0.075} - \newcommand{\titlelogoupperedge}{0.96} - \newcommand{\titlelogorightedge}{0.94} - - \newcommand{\frametitleupperedge}{0.95} - \newcommand{\frametitleleftedge}{0.055} - \newcommand{\frametitlespace}{0.75} - - \newcommand{\bottomupperedge}{0.06} - \newcommand{\bottomauthorleftedge}{\frametitleleftedge} - \newcommand{\bottominstituteleftedge}{0.12} - \newcommand{\bottomdaterightedge}{0.94} % 1 - 0.06 - - \colorlet{frametitlefont}{black} - \colorlet{bottomfont}{black} - \begin{tikzpicture}[overlay, remember picture, shift={(current page.south west)}] % use the whole page - \node[inner sep=0pt, anchor=north east] (psi-logo) at (\titlelogorightedge\paperwidth, \titlelogoupperedge\paperheight) { - \includegraphics[width=\titlelogowidth\paperwidth]{psipresentation/imgs/logos/psi-logo-black} + \node[inner sep=0pt, anchor=north east] (psi-logo) at (\frametitlelogorightedge\paperwidth, \frametitlelogoupperedge\paperheight) { + \includegraphics[width=\frametitlelogowidth\paperwidth]{psipresentation/imgs/logos/psi-logo-black} }; \node[inner sep=0pt, anchor=north west] (frame-title) at (\frametitleleftedge\paperwidth, \frametitleupperedge\paperheight) {