Skip to content

Commit

Permalink
fix: apply upstream beamer fix for empty shortauthor
Browse files Browse the repository at this point in the history
Closes #11. Thanks @samcarter.
  • Loading branch information
jolars committed Mar 4, 2024
1 parent 3c4bf49 commit b8b2d10
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/beamerinnerthememoloch.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,9 @@
\ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi
\ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi
\usebeamertemplate*{title separator}
% \end{macrocode}
%
% Beamer's definition of |\insertauthor| is always nonempty, so we have
% to test another macro initialized by |\author{...}| to see if the user has
% defined an author. This solution was suggested by Enrico Gregorio in an
% answer to \href{https://tex.stackexchange.com/questions/241306/}{this
% Stack Exchange question}.
%
% \begin{macrocode}
\ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi
\expandafter\ifblank\expandafter{\beamer@andstripped}{}{%
\usebeamertemplate*{author}%
}
\ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
\vfill
Expand Down

0 comments on commit b8b2d10

Please sign in to comment.