-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemeGE.sty
132 lines (107 loc) · 3.58 KB
/
beamerthemeGE.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
\ProvidesPackage{GE}[2013/12/05]
\usepackage{amsmath,amssymb}
\usefonttheme{professionalfonts} % 数式はセリフ体
\AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}}
\setbeamertemplate{navigation symbols}{}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
%% スライドのデザインの設定 %%%
\usetheme{default}
\usecolortheme{default}
\useoutertheme{default}
\useinnertheme{default}
% The color list is referred to the color palette by Hahm Soohee
% http://www.colourlovers.com/palette/3259579/Interior-cleanwarm?widths=1
\definecolor{fontc}{RGB}{111,93,100}
\definecolor{bgc}{RGB}{223,223,220}
\definecolor{sub2}{RGB}{246,234,205}
\definecolor{sub1}{RGB}{181,146,110}
\definecolor{base}{RGB}{157,90,62}
% normal font setting
\setbeamercolor{structure}{fg=base}
\setbeamercolor{normal text}{fg=fontc}
\setbeamerfont{normal text}{size=\LARGE}
% background color
\setbeamercolor{background canvas}{bg=bgc}
% serif only math
\usefonttheme[onlymath]{serif}
% title page
\setbeamercolor{author}{fg=base}
\setbeamercolor{title page}{fg=base}
\setbeamerfont{title page}{size=\large}
\setbeamerfont{author}{size=\footnotesize}
\setbeamercolor{title page}{use=structure,fg=base}
\setbeamertemplate{title page}{%
\leavevmode%
\hbox{
\begin{beamercolorbox}[wd=.1\textwidth,left]{}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.8\textwidth,left]{title page}
\vspace*{.1\textheight}
\inserttitle
\vspace*{.1\textheight}
{\small \insertdate}
\insertsubtitle
\vspace*{.1\textheight}
{\small \insertauthor}
\vspace*{.1\textheight}
\end{beamercolorbox}
\begin{beamercolorbox}[wd=.1\textwidth,right]{}%
\end{beamercolorbox}%
}
}
\setbeamerfont{footline}{size=\normalsize}
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.4\textwidth,ht=3ex,dp=1ex,left]{}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.2\textwidth,ht=3ex,dp=1ex,center]{}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.4\textwidth,ht=3ex,dp=1ex,right]{base}
\insertframenumber{}/\inserttotalframenumber \hspace*{2ex}
\end{beamercolorbox}%
}%
\vskip0pt%
}
% frame title
\setbeamerfont{frametitle}{size=\large}
\setbeamercolor{framesection}{fg=base}
\setbeamertemplate{frametitle}{{
\vspace*{5pt}
\leavevmode%
\hbox{%
\begin{beamercolorbox}[leftskip=-1pt, ht=3ex]{framesection}
\insertframetitle
\end{beamercolorbox}
}
\vskip0pt%
}}
\setbeamercolor{item}{fg=base}
% background setting
\setbeamertemplate{background canvas}{%
\begin{tikzpicture}[background rectangle/.style={fill=bgc},show background rectangle]
\clip (0,0) rectangle (\paperwidth,\paperheight);
\fill[color=fontc] (22pt, 0) rectangle (0, \paperheight);
\fill[color=sub2] (19pt, 0) rectangle (0, \paperheight);
\fill[color=sub1] (9pt, 0) rectangle (0, \paperheight);
\fill[color=base] (3pt, 0) rectangle (0, \paperheight);
\end{tikzpicture}}
% normal block setting
\addtobeamertemplate{block begin}{%
\leftskip=5pt
}{}
\setbeamercolor{block title}{use=structure,fg=white,bg=fontc}
\setbeamercolor{block body}{use=structure,fg=fontc,bg=sub2!20!white}
% alert block setting
\addtobeamertemplate{block alerted begin}{%
\leftskip=5pt
}{}
\setbeamercolor{block title alerted}{use=structure,fg=white,bg=sub2!50!red}
\setbeamercolor{block body alerted}{use=structure,fg=fontc,bg=sub2!20!white}
% example block setting
\addtobeamertemplate{block example begin}{%
\leftskip=5pt
}{}
\setbeamercolor{block title example}{fg=fontc}
\setbeamercolor{block body example}{use=structure,fg=fontc,bg=sub1!50!white}