1
0
forked from upb/FancyBeamerUPB

feat: simplify logos on the titlepage

BREAKING CHANGE: removed `\institutelogo`, `\clearinstitutelogo`, `\universitylogo`, and `\clearuniversitylogo`.
This commit is contained in:
EagleoutIce 2024-02-09 09:37:34 +01:00 committed by Thomas Thüm
parent 75a3d0350d
commit affeae7712

View File

@ -111,24 +111,21 @@
% --------------------------------------------- % ---------------------------------------------
% frame layout % frame layout
% --------------------------------------------- % ---------------------------------------------
% [options for includegraphics]{logoname}
\newcommand*\institutelogo[2][]{\def\@institutelogo{\includegraphics[height=4.5ex,#1]{#2}}} % we use this flag as a helper to toggle extra behavior when constructing the logos
\newcommand*\clearinstitutelogo{\def\@institutelogo{}}
\newcommand*\universitylogo[2][]{\def\@universitylogo{\includegraphics[height=4.5ex,#1]{#2}}}
\newcommand*\clearuniversitylogo{\def\@universitylogo{}}
\def\@mainlogo{\@institutelogo\hskip0pt plus 1filll\relax\@universitylogo}
\newif\iffancy@logos@first@ \newif\iffancy@logos@first@
\newcommand*\fancylogos[2][]{\def\@mainlogo{%
% [options for includegraphics, shared for all figures]{logonameA, logonameB, ...}
\newcommand*\fancylogos[2][]{\def\fancy@logoline{%
\fancy@logos@first@true \fancy@logos@first@true
% we iterate over all images given in the comma-separated list
\@for\@image:={#2}\do{% \@for\@image:={#2}\do{%
\iffancy@logos@first@\fancy@logos@first@false\else \hskip0pt plus 1filll\fi \iffancy@logos@first@\fancy@logos@first@false\else\hskip0pt plus 1filll\fi
\ifthenelse{\equal{\@image}{}}{}{% \ifthenelse{\equal{\@image}{}}{}{%
\includegraphics[height=4.5ex,#1]{\@image}% \includegraphics[height=4.5ex,#1]{\@image}%
}% }%
}% }%
}} }}
\clearuniversitylogo
\clearinstitutelogo
\newcommand{\@createtitleslide}{ \newcommand{\@createtitleslide}{
{ {
@ -150,7 +147,7 @@
\begin{beamercolorbox}[wd=\paperwidth,ht=4.5ex,dp=2ex,left]{logobox} \begin{beamercolorbox}[wd=\paperwidth,ht=4.5ex,dp=2ex,left]{logobox}
\vspace{-1ex}% \vspace{-1ex}%
\hspace{10pt} \hspace{10pt}
\@mainlogo \fancy@logoline
\hspace{10pt} \hspace{10pt}
\end{beamercolorbox}% \end{beamercolorbox}%
\end{frame} \end{frame}