From e620a27903a13073ba687c1d1e18ed0b9c086f5c Mon Sep 17 00:00:00 2001 From: Lukas Pietzschmann Date: Thu, 2 Nov 2023 16:25:15 +0100 Subject: [PATCH] Guard against empty info macros --- beamerthemeawesome.sty | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/beamerthemeawesome.sty b/beamerthemeawesome.sty index a2e3fbe..2203330 100644 --- a/beamerthemeawesome.sty +++ b/beamerthemeawesome.sty @@ -375,13 +375,13 @@ segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewi \ensureinfocommand{email} \ensureinfocommand{uni} \ensureinfocommand{location} -\renewcommand\inserttitle{\@title} -\renewcommand\insertshorttitle{\@shorttitle} -\renewcommand\insertauthor{\@author} -\renewcommand\insertshortauthor{\@shortauthor} -\newcommand\insertemail[0]{\href{mailto:\@email}{\@email}} -\newcommand\insertuni[0]{\@uni} -\newcommand\insertlocation[0]{\@location} +\renewcommand\inserttitle{\ifdefined\@title\@title\fi} +\renewcommand\insertshorttitle{\ifdefined\@shorttitle\@shorttitle\fi} +\renewcommand\insertauthor{\ifdefined\@author\@author\fi} +\renewcommand\insertshortauthor{\ifdefined\@shortauthor\@shortauthor\fi} +\newcommand\insertemail[0]{\ifdefined\@email\href{mailto:\@email}{\@email}\fi} +\newcommand\insertuni[0]{\ifdefined\@uni\@uni\fi} +\newcommand\insertlocation[0]{\ifdefined\@location} \tikzfading[ name=title page picture fading,