-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerthemesnubeam.sty
78 lines (68 loc) · 2.44 KB
/
beamerthemesnubeam.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
%----------------------------------------------------------------------------
% Unofficial LaTex beamer theme for Seoul National University
%
% Copyright 2014 Lucy Park <[email protected]>
% http://lucypark.kr
%
% This file may be distributed and/or modified under the GNU GPL 3.0 or above
% http://www.gnu.org/licenses/gpl-3.0.html
%----------------------------------------------------------------------------
\mode<presentation>
\usepackage{color}
\newcommand{\red}[1]{\color{red{#1}}} % Usage: {\red{some words}}
\usepackage{hyperref}
\usepackage{kotex}
% colors
\definecolor{midnight}{rgb}{0, 0.2235, 0.4980}
\definecolor{dawn}{rgb}{0.3647, 0.5459, 0.7922}
\definecolor{olive}{rgb}{0.3, 0.4, 0.1}
\definecolor{gold}{rgb}{0.8, 0.6, 0.1}
\definecolor{gray}{rgb}{0.95, 0.95, 0.95}
\setbeamercolor{title}{fg=white, bg=midnight}
\setbeamercolor{frametitle}{fg=white, bg=dawn}
\setbeamercolor{section in head/foot}{bg=midnight}
\setbeamercolor{palette primary}{fg=black, bg=gray!20!white}
\setbeamercolor{palette secondary}{fg=black, bg=gray!20!white}
\setbeamercolor{palette tertiary}{fg=black, bg=gold}
% eliminate shadows
\setbeamertemplate{title page}[default][colsep=-4bp, rounded=true]
\setbeamertemplate{frametitle}[default][colsep=-4bp, rounded=false, shadow=false]
\setbeamertemplate{blocks}[rounded][shadow=false]
\setbeamertemplate{enumerate items}[default]
% fonts
\renewcommand*{\footnotesize}{\tiny}
% add section contents pages
\AtBeginSection[]
{
\begin{frame}
\frametitle{Contents}
\tableofcontents[currentsection]
\end{frame}
}
% add SNU image to title page
%\addtobeamertemplate{title page}{
% \begin{center}
% \includegraphics[width=0.5\paperwidth]{images/snu.jpg}
% \end{center}
%}{}
% insert page numbers
\setbeamertemplate{footline}
{
\hbox{
\begin{beamercolorbox}[wd=0.5\paperwidth, ht=2.25ex, dp=1ex]{author in head/foot}
\hspace{0.5cm}
\insertshortauthor
\end{beamercolorbox}
\begin{beamercolorbox}[wd=0.5\paperwidth, ht=2.25ex, dp=1ex, right]{date in head/foot}
%\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\hspace{0.5cm}
\end{beamercolorbox}}
}
% change item styles
\useinnertheme{rectangles}
\setbeamertemplate{enumerate item}{
\usebeamercolor[bg]{item projected}
\raisebox{1.5pt}{\colorbox{bg}{\color{fg}\footnotesize\insertenumlabel}}
}
\setbeamertemplate{bibliography item}[text]