diff --git a/beamerthemeawesome.sty b/beamerthemeawesome.sty index f9d9675..1cf236b 100644 --- a/beamerthemeawesome.sty +++ b/beamerthemeawesome.sty @@ -132,6 +132,15 @@ \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}{ \renewcommand{\arraystretch}{1.1} \rowcolors{2}{awesomelightgray}{white} diff --git a/example.pdf b/example.pdf index a34c062..4599253 100644 Binary files a/example.pdf and b/example.pdf differ diff --git a/example.tex b/example.tex index 428e9de..0f449e7 100644 --- a/example.tex +++ b/example.tex @@ -19,7 +19,9 @@ \maketitle \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{column}{0.45\textwidth} \lipsum[1][1-5] @@ -39,7 +41,8 @@ \tikzstyle{every picture}+=[remember picture] \tikzstyle{na} = [shape=rectangle,inner sep=0pt,text depth=0pt] -\begin{frame}{Another Slide} +\begin{frame} + \frametitle{Another Slide} \begin{itemize} \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? @@ -56,7 +59,9 @@ \section{Section 2} \subsection{Subsection 1} -\begin{frame}{Cool picture}{With animations} +\begin{frame} + \frametitle{Cool picture} + \framesubtitle{With animations} \begin{columns} \begin{column}{0.45\textwidth} \begin{tikzpicture}[ @@ -127,7 +132,8 @@ \end{columns} \end{frame} -\begin{frame}{No information shown} +\begin{frame} + \frametitle{No information shown} \lipsum[2][1-8] \end{frame}