latex-beamer-themes/Akatsuki/beamerouterthemeAkatsuki.sty
2017-11-15 18:23:44 +01:00

61 lines
1.6 KiB
TeX

\mode<presentation>
%
%
% Frame title
%
%
\defbeamertemplate*{frametitle}{Akatsuki}[1][]
{
% \vskip1cm%
\begin{beamercolorbox}[wd=\paperwidth,ht=1.2cm]{frametitle}
\begin{tikzpicture}
\useasboundingbox[fill=white](0,0) rectangle(\the\paperwidth,1.2);
\fill[color=main0] (0,0) rectangle(2.95,1.2);
\fill[color=main2] (3.05,0) rectangle(\the\paperwidth,1.2);
\ifx\insertframesubtitle\@empty%
{\node[anchor=west, color=white, font=\large] at (3.2,0.61){\insertframetitle};}
\else%
{\node[anchor= west, color=white, font=\large] at (3.2,0.81){\insertframetitle};%
\node[anchor= west, color=white, font=\small] at (3.2,0.41){\insertframesubtitle};}%
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
%
%
% Foot line
%
%
\setbeamertemplate{footline}{
\leavevmode%
\begin{beamercolorbox}[wd=\paperwidth,ht=1pt,dp=1ex,center]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[wd=.2\paperwidth,ht=1em,dp=1ex,center]{} %{author in head/foot}
\usebeamerfont{author in head/foot}
\hspace*{4mm}
\insertdate
\hspace{4mm}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth,ht=1em,dp=1ex,center]{} %{title in head/foot}
\usebeamerfont{title in head/foot}
\hspace*{4mm}
\insertshorttitle
\hspace{4mm}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.2\paperwidth,ht=1em,dp=1ex,center]{} %{page number in head/foot}
\usebeamerfont{page number in head/foot}
\hspace*{4mm}
\insertframenumber{} / \inserttotalframenumber
\hspace{4mm}
\end{beamercolorbox}
\vspace*{.1cm}
}
\mode<all>