-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerinnerthemeki.sty
63 lines (58 loc) · 1.76 KB
/
beamerinnerthemeki.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
\mode<presentation>
% \setbeamertemplate{background}{
% \begin{tikzpicture}
% \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
% \fill[color=ki] (0,0) rectangle (\the\paperwidth,\the\paperheight);
% \ifnum\thepage>1\relax%
% \fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
% \fi
% \end{tikzpicture}
% }
\setbeamertemplate{background canvas}{%
\ifnum\c@framenumber=1%
% On title page
\color{ki}\rule{\paperwidth}{\paperheight}
\else%
% Other frames background
\fi%
}
\newcommand{\sepframe}[1]{
\begin{frame}
\vspace{-0.035cm}
\begin{beamercolorbox}[wd=\paperwidth,ht=\paperheight]{frametitle}%
\begin{tikzpicture}[baseline=0pt]%
\useasboundingbox[fill=ki](0,0) rectangle(\the\paperwidth,\the\paperheight);
\node[font=\huge,white,text width=10cm,text badly centered] at (current page.center) {\expandafter{#1}};%
\end{tikzpicture}
\end{beamercolorbox}
\end{frame}
}
% Title page
\defbeamertemplate*{title page}{ki}[1][]
{
\vbox{}
\vfill
\begin{centering}
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle\par%
\vskip0.25em%
{\usebeamercolor[fg]{titlegraphic}\includegraphics[width=5cm]{logo-ki.png}\par}
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
\end{centering}
\vfill
}