diff --git a/beamerthemeawesome.sty b/beamerthemeawesome.sty index 0f2eec5..2bb46ec 100644 --- a/beamerthemeawesome.sty +++ b/beamerthemeawesome.sty @@ -50,9 +50,9 @@ \AtEndPreamble{ \hypersetup{ - pdftitle = {\mytitle}, - pdfauthor = {\student}, - pdfsubject = {\mytitle} + pdftitle = {\inserttitle}, + pdfauthor = {\insertauthor}, + pdfsubject = {\inserttitle} } } @@ -276,20 +276,28 @@ \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[ name=title page picture fading, left color=transparent!0, 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{ \setbeamertemplate{footline}{} \@nameuse{ps@navigation} @@ -301,29 +309,29 @@ \raggedright \usebeamerfont{title} \usebeamercolor[fg]{title} - \mytitle\\ + \inserttitle\\ \usebeamerfont{subtitle} \usebeamercolor[fg]{subtitle} - \mysubtitle + \insertsubtitle \usebeamertemplate{separator} \usebeamerfont{author} \usebeamercolor[fg]{author} \vspace{2em} - \student\\ + \insertauthor\\ \usebeamerfont{details} \usebeamercolor[fg]{details} - \href{mailto:\mail}{\mail} + \insertemail \vspace{2em} \usebeamerfont{details} \usebeamercolor[fg]{details} - \myinstitute\\ - \uni + \insertinstitute\\ + \insertuni \vspace{2em} - \mydate + \insertdate \end{minipage} \ifdefined\awesome@background @@ -365,9 +373,9 @@ dp=1ex ]{footline}% \hspace{0.3cm}% - \student% + \insertauthor% \hfill% - \mytitle\hspace{.7em}$\cdot$\hspace{.7em}\insertsection% + \inserttitle\hspace{.7em}$\cdot$\hspace{.7em}\insertsection% \ifnum\insertsectionstartpage=\insertsubsectionstartpage% \hspace{.4em}% \ifnum\framespersection>1% @@ -412,9 +420,9 @@ dp=1ex ]{footline}% \hspace{0.3cm}% - \student% + \insertauthor% \hfill% - \mytitle% + \inserttitle% \hfill% \colorbox{awesomehighlight!70}{\hspace{0.3cm}Seite~\insertframenumber~/~\inserttotalframenumber\hspace{0.3cm}}% \end{beamercolorbox}% diff --git a/example.tex b/example.tex index d49d063..9dce517 100644 --- a/example.tex +++ b/example.tex @@ -4,13 +4,13 @@ \usetheme{awesome} -\renewcommand{\mytitle}{Test Presentation} -\renewcommand{\mysubtitle}{To illustrate this awesome theme} -\renewcommand{\student}{Lukas Pietzschmann} -\renewcommand{\mail}{lukas.pietzschmann@uni-ulm.de} -\renewcommand{\myinstitute}{Institute of Software Engineering and\\Programming Languages} -\renewcommand{\uni}{University of Ulm} -\renewcommand{\mydate}{\today} +\title{Test Presentation} +\author{Lukas Pietzschmann} +\subtitle{To illustrate this awesome theme} +\mail{lukas.pietzschmann@uni-ulm.de} +\institute{Institute of Software Engineering and\\Programming Languages} +\uni{University of Ulm} +\date{\today} \background{background.png} \begin{document}