\frametitle can now add a "subsubtitle" to the top right

This commit is contained in:
Lukas Pietzschmann
2023-02-02 13:25:20 +01:00
parent c929fff328
commit 98789598c4
3 changed files with 19 additions and 4 deletions

View File

@@ -132,6 +132,15 @@
\scalebox{0.7}{#1} \scalebox{0.7}{#1}
} }
\let\oldft\frametitle
\renewcommand\frametitle[2][\empty]{
\if{#1}\empty%
\oldft{#2}%
\else%
\oldft{#2\hfill\normalfont\large\color{awesomegray}\raisebox{0.3ex}{#1}}%
\fi
}
\BeforeBeginEnvironment{tabular}{ \BeforeBeginEnvironment{tabular}{
\renewcommand{\arraystretch}{1.1} \renewcommand{\arraystretch}{1.1}
\rowcolors{2}{awesomelightgray}{white} \rowcolors{2}{awesomelightgray}{white}

Binary file not shown.

View File

@@ -19,7 +19,9 @@
\maketitle \maketitle
\section{Section 1} \section{Section 1}
\begin{frame}{Example Slide}{With a subtitle} \begin{frame}
\frametitle[Another Title]{Example Slide}
\framesubtitle{With a subtitle}
\begin{columns}[t] \begin{columns}[t]
\begin{column}{0.45\textwidth} \begin{column}{0.45\textwidth}
\lipsum[1][1-5] \lipsum[1][1-5]
@@ -39,7 +41,8 @@
\tikzstyle{every picture}+=[remember picture] \tikzstyle{every picture}+=[remember picture]
\tikzstyle{na} = [shape=rectangle,inner sep=0pt,text depth=0pt] \tikzstyle{na} = [shape=rectangle,inner sep=0pt,text depth=0pt]
\begin{frame}{Another Slide} \begin{frame}
\frametitle{Another Slide}
\begin{itemize} \begin{itemize}
\item That info is sooooooo \tikz\node[na] (A) {\gul{important}}; \item That info is sooooooo \tikz\node[na] (A) {\gul{important}};
\item This is a key \tikz\node[na] (D) {\gul{word}};, isn't it? \item This is a key \tikz\node[na] (D) {\gul{word}};, isn't it?
@@ -56,7 +59,9 @@
\section{Section 2} \section{Section 2}
\subsection{Subsection 1} \subsection{Subsection 1}
\begin{frame}{Cool picture}{With animations} \begin{frame}
\frametitle{Cool picture}
\framesubtitle{With animations}
\begin{columns} \begin{columns}
\begin{column}{0.45\textwidth} \begin{column}{0.45\textwidth}
\begin{tikzpicture}[ \begin{tikzpicture}[
@@ -127,7 +132,8 @@
\end{columns} \end{columns}
\end{frame} \end{frame}
\begin{frame}{No information shown} \begin{frame}
\frametitle{No information shown}
\lipsum[2][1-8] \lipsum[2][1-8]
\end{frame} \end{frame}