-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemePKU.sty
47 lines (38 loc) · 1.54 KB
/
beamerthemePKU.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
% Formally establish Beamer theme package
\ProvidesPackage{beamerthemePKU}
% -------- Invoke presentation mode ----------------
\mode<presentation>
% -------- Set color, inner theme, frame title formats, etc. ------------
\usecolortheme{PKUBeaver}
\useinnertheme{circles}
\setbeamerfont{frametitle}{size=\Large,series=\bfseries}
% -------- Define behavior for theme option "minimal" -----------
\DeclareOptionBeamer{minimal}{
\setbeamertemplate{frametitle}
{
\nointerlineskip
\begin{beamercolorbox}[sep=0.3cm,ht=27pt,wd=\paperwidth]{frametitle}
\vbox{}\vskip-2ex%
\strut\insertframetitle\strut
\vskip-0.8ex%
\end{beamercolorbox}
}
\logo{\includegraphics[width=2.2cm]{./figures/PKU_LOGO_Transparent.png}}
}
% -------- Define behavior for theme option "sidebarleft" -----------
\DeclareOptionBeamer{sidebarleft}{
\useoutertheme[height=27pt,width=50pt,left]{sidebar}
\logo{\includegraphics[width=1.75cm]{./figures/PKU_LOGO_Transparent.png}}
}
% -------- Define behavior for theme option "sidebarright" -----------
\DeclareOptionBeamer{sidebarright}{
\useoutertheme[height=27pt,width=50pt,right]{sidebar}
\logo{\includegraphics[width=1.75cm]{./figures/PKU_LOGO_Transparent.png}}
}
\ProcessOptionsBeamer
% -------- Set the font themes to be used here -----------------
%\usepackage{helvet} % use Helvetica as text fonts
% -------- Remove navigation symbols from appearing ----------------
\setbeamertemplate{navigation symbols}{}
% -------- Invoke all mode
\mode<all>