added "namespace" TP for title page constants

This commit is contained in:
2024-05-31 20:11:19 +02:00
parent 269b9a5a35
commit 9aaf415298

View File

@ -105,26 +105,26 @@ BoldItalicFont = *-Bold-Italic
% title page % title page
\newcommand{\titletextleftedge}{0.056} \newcommand{\TPtextleftedge}{0.056}
\newcommand{\titlelogowidth}{0.14} \newcommand{\TPlogowidth}{0.14}
\newcommand{\titlelogoupperedge}{0.84} \newcommand{\TPlogoupperedge}{0.84}
\newcommand{\titleboxheight}{0.27} \newcommand{\TPbottomboxheight}{0.27}
\newcommand{\titleimageheight}{0.78} \newcommand{\TPimageheight}{0.78}
\newcommand{\ypostitle}{4.65} \newcommand{\TPypostitle}{4.65}
\newcommand{\ypossubtitle}{3.8} \newcommand{\TPypossubtitle}{3.8}
\newcommand{\yposauthor}{1.1} \newcommand{\TPyposauthor}{1.1}
\newcommand{\yposlocationdate}{0.75} \newcommand{\TPyposlocationdate}{0.75}
\newcommand{\centerforwidth}{0.195} \newcommand{\TPcenterforwidth}{0.195}
\newcommand{\centerforleftedge}{0.208} \newcommand{\TPcenterforleftedge}{0.208}
\newcommand{\centerforupperedge}{0.8615} \newcommand{\TPcenterforupperedge}{0.8615}
\colorlet{authorfont}{white} \colorlet{TPauthorfont}{white}
\colorlet{datefont}{white} \colorlet{TPdatefont}{white}
\defbeamertemplate*{title page}{PSI}[1][] \defbeamertemplate*{title page}{PSI}[1][]
@ -133,10 +133,10 @@ BoldItalicFont = *-Bold-Italic
\ifx \inserttitleimage \empty \ifx \inserttitleimage \empty
\colorlet{titlefont}{white} \colorlet{TPtitlefont}{white}
\colorlet{subtitlefont}{white} \colorlet{TPsubtitlefont}{white}
\newcommand{\logocolor}{white} \newcommand{\TPlogocolor}{white}
\newcommand{\titletextspace}{0.66} \newcommand{\TPtextspace}{0.66}
\node[inner sep=0pt, anchor=south west] (bkg) at (-0.01, -0.01) { \node[inner sep=0pt, anchor=south west] (bkg) at (-0.01, -0.01) {
\includegraphics[height=\paperheight]{psipresentation/imgs/bkgs/\inserttitlecolor} \includegraphics[height=\paperheight]{psipresentation/imgs/bkgs/\inserttitlecolor}
@ -144,27 +144,27 @@ BoldItalicFont = *-Bold-Italic
\else \else
\colorlet{titlefont}{black} \colorlet{TPtitlefont}{black}
\colorlet{subtitlefont}{black} \colorlet{TPsubtitlefont}{black}
\newcommand{\logocolor}{black} \newcommand{\TPlogocolor}{black}
\newcommand{\titletextspace}{0.43} \newcommand{\TPtextspace}{0.43}
\fill[\inserttitlecolor] (0, \titleboxheight\paperheight) rectangle ++(\paperwidth, -\paperheight); % bottom color box \fill[\inserttitlecolor] (0, \TPbottomboxheight\paperheight) rectangle ++(\paperwidth, -\paperheight); % bottom color box
\node[inner sep=0pt, anchor=west] (image) at (\paperwidth/2 + 5, \paperheight/2 + 5) { \node[inner sep=0pt, anchor=west] (image) at (\paperwidth/2 + 5, \paperheight/2 + 5) {
\includegraphics[height=\titleimageheight\paperheight]{\inserttitleimage} \includegraphics[height=\TPimageheight\paperheight]{\inserttitleimage}
}; };
\fi \fi
\node[inner sep=0pt, anchor=south west] (psi-logo) at (\titletextleftedge\paperwidth, \titlelogoupperedge\paperheight) { \node[inner sep=0pt, anchor=south west] (psi-logo) at (\TPtextleftedge\paperwidth, \TPlogoupperedge\paperheight) {
\includegraphics[width=\titlelogowidth\paperwidth]{psipresentation/imgs/logos/psi-logo-\logocolor} \includegraphics[width=\TPlogowidth\paperwidth]{psipresentation/imgs/logos/psi-logo-\TPlogocolor}
}; };
\ifx \insertcenterfor \empty \else \ifx \insertcenterfor \empty \else
\node[inner sep=0pt, anchor=south west] (centerfortext) at (\centerforleftedge\paperwidth, \centerforupperedge\paperheight) { \node[inner sep=0pt, anchor=south west] (centerfortext) at (\TPcenterforleftedge\paperwidth, \TPcenterforupperedge\paperheight) {
\rlap{\fontsize{6}{6}\selectfont\textbf{\textcolor{titlefont}{% \rlap{\fontsize{6}{6}\selectfont\textbf{\textcolor{TPtitlefont}{%
\parbox[t]{\centerforwidth\paperwidth}{% \parbox[t]{\TPcenterforwidth\paperwidth}{%
Center for \insertcenterfor% Center for \insertcenterfor%
} }
}}}}; }}}};
@ -172,30 +172,30 @@ BoldItalicFont = *-Bold-Italic
%TODO: make the following a command? %TODO: make the following a command?
\node[inner sep=0pt, anchor=south] (titletext) at (\titletextleftedge\paperwidth, \ypostitle) { \node[inner sep=0pt, anchor=south] (titletext) at (\TPtextleftedge\paperwidth, \TPypostitle) {
\rlap{\huge\textbf{\textcolor{titlefont}{% \rlap{\huge\textbf{\textcolor{TPtitlefont}{%
\parbox[t]{\titletextspace\paperwidth}{% \parbox[t]{\TPtextspace\paperwidth}{%
\inserttitle% \inserttitle%
} }
}}}}; }}}};
\node[inner sep=0pt] (subtitletext) at (\titletextleftedge\paperwidth, \ypossubtitle) { \node[inner sep=0pt] (subtitletext) at (\TPtextleftedge\paperwidth, \TPypossubtitle) {
\rlap{\large\textbf{\textcolor{subtitlefont}{% \rlap{\large\textbf{\textcolor{TPsubtitlefont}{%
\parbox[t]{\titletextspace\paperwidth}{% \parbox[t]{\TPtextspace\paperwidth}{%
\insertsubtitle{}% \insertsubtitle{}%
} }
}}}}; }}}};
\node[inner sep=0pt] (authortext) at (\titletextleftedge\paperwidth, \yposauthor) { \node[inner sep=0pt] (authortext) at (\TPtextleftedge\paperwidth, \TPyposauthor) {
\rlap{\footnotesize{\textcolor{authorfont}{% \rlap{\footnotesize{\textcolor{TPauthorfont}{%
\parbox[t]{\titletextspace\paperwidth}{% \parbox[t]{\TPtextspace\paperwidth}{%
\insertauthor{}% \insertauthor{}%
} }
}}}}; }}}};
\node[inner sep=0pt] (locationdatetext) at (\titletextleftedge\paperwidth, \yposlocationdate) { \node[inner sep=0pt] (locationdatetext) at (\TPtextleftedge\paperwidth, \TPyposlocationdate) {
\rlap{\footnotesize{\textcolor{datefont}{ \rlap{\footnotesize{\textcolor{TPdatefont}{
\parbox[t]{\titletextspace\paperwidth}{% \parbox[t]{\TPtextspace\paperwidth}{%
\insertlocation, \insertdate% \insertlocation, \insertdate%
} }
}}}}; }}}};