Support for framesubtitle
This commit is contained in:
@@ -301,22 +301,28 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
\setbeamertemplate{frametitle}{%
|
\setbeamertemplate{frametitle}{%
|
||||||
\vspace{1em}%
|
\vspace{1em}\hspace{-\beamer@leftsidebar}\begin{beamercolorbox}[wd=\beamer@leftsidebar]{frametitle}%
|
||||||
\beamercolorbox[leftskip=-\beamer@leftsidebar]{frametitle}%
|
\ifx\insertsection\empty\else%
|
||||||
\strut\usebeamerfont{frametitle}\parbox{\dimexpr\beamer@leftsidebar}{\strut%
|
\color{accent}\thesection.%
|
||||||
\ifx\insertsection\empty\else%
|
\ifx\insertsubsection\empty%
|
||||||
\color{accent}\thesection.%
|
\ifnum\framespersection>1%
|
||||||
\ifx\insertsubsection\empty%
|
\color{black!25!white}\scalebox{.7}{\theframesinsection}%
|
||||||
\ifnum\framespersection>1%
|
\fi%
|
||||||
\color{black!25!white}\scalebox{.7}{\theframesinsection}%
|
\else%
|
||||||
|
\thesubsection.\color{black!25!white}%
|
||||||
|
\ifnum\framespersubsection>1%
|
||||||
|
\scalebox{.7}{\theframesinsubsection}%
|
||||||
|
\fi%
|
||||||
\fi%
|
\fi%
|
||||||
\else%
|
\fi
|
||||||
\thesubsection.\color{black!25!white}%
|
\end{beamercolorbox}%
|
||||||
\ifnum\framespersubsection>1%
|
\begin{beamercolorbox}{frametitle}%
|
||||||
\scalebox{.7}{\theframesinsubsection}%
|
\insertframetitle%
|
||||||
\fi%
|
\end{beamercolorbox}
|
||||||
\fi%
|
\ifx\insertframesubtitle\empty\else%
|
||||||
\fi}\insertframetitle\endbeamercolorbox%
|
\begin{beamercolorbox}{framesubtitle}%
|
||||||
|
\usebeamerfont{subtitle}\insertframesubtitle%
|
||||||
|
\end{beamercolorbox}\fi%
|
||||||
}
|
}
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|||||||
BIN
example.pdf
BIN
example.pdf
Binary file not shown.
Reference in New Issue
Block a user