Updated commands for adding author details

This commit is contained in:
Lukas Pietzschmann
2022-12-09 20:14:26 +01:00
parent fd99941a06
commit 8d31366796
2 changed files with 37 additions and 29 deletions

View File

@@ -50,9 +50,9 @@
\AtEndPreamble{ \AtEndPreamble{
\hypersetup{ \hypersetup{
pdftitle = {\mytitle}, pdftitle = {\inserttitle},
pdfauthor = {\student}, pdfauthor = {\insertauthor},
pdfsubject = {\mytitle} pdfsubject = {\inserttitle}
} }
} }
@@ -276,20 +276,28 @@
\newcommand{\awesome@background}{#1} \newcommand{\awesome@background}{#1}
} }
\newcommand{\email}[1]{
\newcommand{\awesome@email}{#1}
}
\newcommand{\insertemail}[0]{
\href{mailto:\awesome@email}{\awesome@email}
}
\newcommand{\uni}[1]{
\newcommand{\awesome@uni}{#1}
}
\newcommand{\insertuni}[0]{
\href{mailto:\awesome@uni}{\awesome@uni}
}
\tikzfading[ \tikzfading[
name=title page picture fading, name=title page picture fading,
left color=transparent!0, left color=transparent!0,
right color=transparent!100, right color=transparent!100,
] ]
\newcommand{\mytitle}{Title}
\newcommand{\mysubtitle}{Subtitle}
\newcommand{\student}{Max Mustermann}
\newcommand{\mail}{max@mustermann.de}
\newcommand{\myinstitute}{Some Institute}
\newcommand{\uni}{Some Uni}
\newcommand{\mydate}{\today}
\def\ps@navigation@titlepage{ \def\ps@navigation@titlepage{
\setbeamertemplate{footline}{} \setbeamertemplate{footline}{}
\@nameuse{ps@navigation} \@nameuse{ps@navigation}
@@ -301,29 +309,29 @@
\raggedright \raggedright
\usebeamerfont{title} \usebeamerfont{title}
\usebeamercolor[fg]{title} \usebeamercolor[fg]{title}
\mytitle\\ \inserttitle\\
\usebeamerfont{subtitle} \usebeamerfont{subtitle}
\usebeamercolor[fg]{subtitle} \usebeamercolor[fg]{subtitle}
\mysubtitle \insertsubtitle
\usebeamertemplate{separator} \usebeamertemplate{separator}
\usebeamerfont{author} \usebeamerfont{author}
\usebeamercolor[fg]{author} \usebeamercolor[fg]{author}
\vspace{2em} \vspace{2em}
\student\\ \insertauthor\\
\usebeamerfont{details} \usebeamerfont{details}
\usebeamercolor[fg]{details} \usebeamercolor[fg]{details}
\href{mailto:\mail}{\mail} \insertemail
\vspace{2em} \vspace{2em}
\usebeamerfont{details} \usebeamerfont{details}
\usebeamercolor[fg]{details} \usebeamercolor[fg]{details}
\myinstitute\\ \insertinstitute\\
\uni \insertuni
\vspace{2em} \vspace{2em}
\mydate \insertdate
\end{minipage} \end{minipage}
\ifdefined\awesome@background \ifdefined\awesome@background
@@ -365,9 +373,9 @@
dp=1ex dp=1ex
]{footline}% ]{footline}%
\hspace{0.3cm}% \hspace{0.3cm}%
\student% \insertauthor%
\hfill% \hfill%
\mytitle\hspace{.7em}$\cdot$\hspace{.7em}\insertsection% \inserttitle\hspace{.7em}$\cdot$\hspace{.7em}\insertsection%
\ifnum\insertsectionstartpage=\insertsubsectionstartpage% \ifnum\insertsectionstartpage=\insertsubsectionstartpage%
\hspace{.4em}% \hspace{.4em}%
\ifnum\framespersection>1% \ifnum\framespersection>1%
@@ -412,9 +420,9 @@
dp=1ex dp=1ex
]{footline}% ]{footline}%
\hspace{0.3cm}% \hspace{0.3cm}%
\student% \insertauthor%
\hfill% \hfill%
\mytitle% \inserttitle%
\hfill% \hfill%
\colorbox{awesomehighlight!70}{\hspace{0.3cm}Seite~\insertframenumber~/~\inserttotalframenumber\hspace{0.3cm}}% \colorbox{awesomehighlight!70}{\hspace{0.3cm}Seite~\insertframenumber~/~\inserttotalframenumber\hspace{0.3cm}}%
\end{beamercolorbox}% \end{beamercolorbox}%

View File

@@ -4,13 +4,13 @@
\usetheme{awesome} \usetheme{awesome}
\renewcommand{\mytitle}{Test Presentation} \title{Test Presentation}
\renewcommand{\mysubtitle}{To illustrate this awesome theme} \author{Lukas Pietzschmann}
\renewcommand{\student}{Lukas Pietzschmann} \subtitle{To illustrate this awesome theme}
\renewcommand{\mail}{lukas.pietzschmann@uni-ulm.de} \mail{lukas.pietzschmann@uni-ulm.de}
\renewcommand{\myinstitute}{Institute of Software Engineering and\\Programming Languages} \institute{Institute of Software Engineering and\\Programming Languages}
\renewcommand{\uni}{University of Ulm} \uni{University of Ulm}
\renewcommand{\mydate}{\today} \date{\today}
\background{background.png} \background{background.png}
\begin{document} \begin{document}