feat: group institute with author and subdue color

This change is mostly a result of the discussion at https://github.com/matze/mtheme/issues/180.
This commit is contained in:
Johan Larsson 2024-01-12 23:06:14 +01:00
parent dbabbbaa4d
commit 0f3f6da573
2 changed files with 14 additions and 14 deletions

View File

@ -113,7 +113,7 @@
\setbeamercolor{titlelike}{use=normal text, parent=normal text} \setbeamercolor{titlelike}{use=normal text, parent=normal text}
\setbeamercolor{author}{use=normal text, parent=normal text} \setbeamercolor{author}{use=normal text, parent=normal text}
\setbeamercolor{date}{use=normal text, parent=normal text} \setbeamercolor{date}{use=normal text, parent=normal text}
\setbeamercolor{institute}{use=normal text, parent=normal text} \setbeamercolor{institute}{use=normal text, fg=normal text.fg!80!normal text.bg}
\setbeamercolor{structure}{use=normal text, fg=normal text.fg} \setbeamercolor{structure}{use=normal text, fg=normal text.fg}
% \end{macrocode} % \end{macrocode}
% %

View File

@ -114,8 +114,8 @@
% %
% \begin{macrocode} % \begin{macrocode}
\ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi \ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
\ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi \ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
\vfill \vfill
\vspace*{1mm} \vspace*{1mm}
\end{minipage} \end{minipage}
@ -212,17 +212,6 @@
\vspace*{2em} \vspace*{2em}
\insertauthor% \insertauthor%
\par% \par%
\vspace*{0.25em}
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{date}
% Set the date on the title page.
% \begin{macrocode}
\setbeamertemplate{date}{
\insertdate%
\par%
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -231,7 +220,7 @@
% Set the institute on the title page. % Set the institute on the title page.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{institute}{ \setbeamertemplate{institute}{
\vspace*{3mm} \vspace*{0.5em}
\insertinstitute% \insertinstitute%
\par% \par%
} }
@ -239,6 +228,17 @@
% \end{macro} % \end{macro}
% %
% %
% \begin{macro}{date}
% Set the date on the title page.
% \begin{macrocode}
\setbeamertemplate{date}{
\vspace*{1.5em}
\insertdate%
\par%
}
% \end{macrocode}
% \end{macro}
%
% %
% \subsubsection{Section page} % \subsubsection{Section page}
% %