From e82d0c6e390a3977f60caba60757f0463a66ce36 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Sun, 23 Oct 2022 23:56:24 +0900 Subject: [PATCH] added titleimage and made it and the subtitle optional --- Template_Presentation.tex | 1 + beamerinnerthemeutokyo.sty | 26 +++++++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/Template_Presentation.tex b/Template_Presentation.tex index 5afd9cb..802fa88 100644 --- a/Template_Presentation.tex +++ b/Template_Presentation.tex @@ -5,6 +5,7 @@ \def \TITLE{Example Title} \def \SUBTITLE{Example Subtitle} +\def \TITLEIMAGE{\includesvg[width = 30 mm]{./images/clocktower.svg}} \def \AUTHOR{Example Author\\123456\\example@invalid.com} \def \COMPACTAUTHOR{Example Author} \def \DATE{Example Date} diff --git a/beamerinnerthemeutokyo.sty b/beamerinnerthemeutokyo.sty index d0392d3..4c7efac 100644 --- a/beamerinnerthemeutokyo.sty +++ b/beamerinnerthemeutokyo.sty @@ -16,8 +16,13 @@ \node[below right] at (current bounding box.north west) { \footnotesize \hspace{.05\paperwidth} - {\tiny\inserttitle \space | \insertshortauthor \space | \insertdate} - }; + { + \ifx\SUBTITLE\@empty + \footnotesize\inserttitle~| \insertshortauthor~| \insertdate + \else + \footnotesize\inserttitle~ -- \insertsubtitle~| \insertshortauthor~| \insertdate + \fi + }}; \node[above left] at (current bounding box.south east) { {\huge\insertframenumber} }; @@ -41,16 +46,19 @@ \defbeamertemplate*{title page}{utokyo}[1][] { \begin{center} - \vspace{-.2\paperheight} - \huge + \Huge \textbf{\inserttitle}\\ - \vspace{.05\paperheight} + \ifx\SUBTITLE\@empty + \else + \huge + \insertsubtitle\\ + \fi + \ifx\TITLEIMAGE\@empty + \else + \TITLEIMAGE\\ + \fi \Large - \insertsubtitle\\ - \vspace{.08\paperheight} - \normalsize \insertauthor\\ - \vspace{.03\paperheight} \insertdate \end{center} }