added titleimage and made it and the subtitle optional

This commit is contained in:
paul-loedige 2022-10-23 23:56:24 +09:00
parent 34b8d7ac0d
commit e82d0c6e39
2 changed files with 18 additions and 9 deletions

View File

@ -5,6 +5,7 @@
\def \TITLE{Example Title} \def \TITLE{Example Title}
\def \SUBTITLE{Example Subtitle} \def \SUBTITLE{Example Subtitle}
\def \TITLEIMAGE{\includesvg[width = 30 mm]{./images/clocktower.svg}}
\def \AUTHOR{Example Author\\123456\\example@invalid.com} \def \AUTHOR{Example Author\\123456\\example@invalid.com}
\def \COMPACTAUTHOR{Example Author} \def \COMPACTAUTHOR{Example Author}
\def \DATE{Example Date} \def \DATE{Example Date}

View File

@ -16,8 +16,13 @@
\node[below right] at (current bounding box.north west) { \node[below right] at (current bounding box.north west) {
\footnotesize \footnotesize
\hspace{.05\paperwidth} \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) { \node[above left] at (current bounding box.south east) {
{\huge\insertframenumber} {\huge\insertframenumber}
}; };
@ -41,16 +46,19 @@
\defbeamertemplate*{title page}{utokyo}[1][] \defbeamertemplate*{title page}{utokyo}[1][]
{ {
\begin{center} \begin{center}
\vspace{-.2\paperheight} \Huge
\huge
\textbf{\inserttitle}\\ \textbf{\inserttitle}\\
\vspace{.05\paperheight} \ifx\SUBTITLE\@empty
\else
\huge
\insertsubtitle\\
\fi
\ifx\TITLEIMAGE\@empty
\else
\TITLEIMAGE\\
\fi
\Large \Large
\insertsubtitle\\
\vspace{.08\paperheight}
\normalsize
\insertauthor\\ \insertauthor\\
\vspace{.03\paperheight}
\insertdate \insertdate
\end{center} \end{center}
} }