-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerouterthemeacis.sty
235 lines (201 loc) · 7.04 KB
/
beamerouterthemeacis.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
% Copyright 2007 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\ProvidesPackageRCS$Header: /Users/joseph/Documents/LaTeX/beamer/base/themes/outer/beamerouterthemeacis.sty,v d02a7cf4d8ae 2010/06/17 09:11:41 rivanvx $
\newdimen\beamer@sidebarwidth
\newdimen\beamer@headheight
\usebeamerfont{frametitle}
\beamer@sidebarwidth=2.65\baselineskip
\beamer@headheight=30pt
\reset@font
\def\beamer@lefttext{left}
\DeclareOptionBeamer{hideothersubsections}[]{\beamer@nav@subsectionstyle{show/show/hide}}
\DeclareOptionBeamer{hideallsubsections}[]{\beamer@nav@subsectionstyle{hide}}
\DeclareOptionBeamer{width}{\beamer@sidebarwidth=#1}
\DeclareOptionBeamer{height}{\beamer@headheight=#1}
\DeclareOptionBeamer{left}{\def\beamer@sidebarside{left}}
\DeclareOptionBeamer{right}{\def\beamer@sidebarside{right}}
\ExecuteOptionsBeamer{left}
\ProcessOptionsBeamer
\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
\newcommand{\cfbox}[2]{%
\colorlet{currentcolor}{.}%
{\color{#1}%
\fbox{\color{currentcolor}#2}}%
}
\mode<presentation>
\definecolor{RWTHblue}{RGB}{0,83,159}
\definecolor{RWTHblack}{RGB}{0,0,0}
\definecolor{RWTHwhite}{RGB}{255,255,255}
\definecolor{RWTHlightblue}{RGB}{127,170,208}
\definecolor{RWTHgrey}{RGB}{51,51,51}
\definecolor{RWTHlightgrey}{RGB}{204,204,204}
\definecolor{RWTHsuperlightgrey}{RGB}{247,247,247}
% Assign the colors to the differen pars
% Title
\setbeamercolor{title}{fg = RWTHblue}
% Frame title
\setbeamercolor{frametitle}{fg = RWTHblue}
% Table of contents
\setbeamercolor{section in toc}{fg = RWTHblack}
\setbeamercolor{subsection in toc}{fg = RWTHblue}
\setbeamercolor{section in toc shaded}{fg = RWTHlightgrey}
% List colors (itemize)
\setbeamercolor{item}{fg = RWTHblue}
\setbeamercolor{subitem}{fg = RWTHblack}
\setbeamercolor{subsubitem}{fg = RWTHblack}
% The color of the bullets points
\setbeamercolor{description item}{fg = RWTHblue}
% Captions
\setbeamercolor{caption}{fg = RWTHblack}
\setbeamercolor{caption name}{fg = RWTHblack}
\setbeamercolor{section in sidebar}{fg=RWTHblue}
\setbeamercolor{section in sidebar shaded}{fg= RWTHlightblue}
\setbeamercolor{subsection in sidebar}{fg=RWTHblack}
\setbeamercolor{subsection in sidebar shaded}{fg= RWTHlightgrey}
% Style the block elements:
% - Standard blocks
% - Alert blocks
% - Example block
% Standard block
\setbeamercolor{block title}{fg = RWTHblue, bg = RWTHlightgrey}
\setbeamercolor{block body}{fg = RWTHblack, bg = RWTHsuperlightgrey}
% Alert block
\setbeamercolor{block title alerted}{fg = RWTHwhite, bg = RWTHgrey}
\setbeamercolor{block body alerted}{fg = RWTHblack, bg = RWTHsuperlightgrey}
% Example block
\setbeamercolor{block title example}{fg = RWTHwhite, bg = RWTHblue}
\setbeamercolor{block body example}{fg = RWTHblack, bg = RWTHsuperlightgrey}
% Normal text
\setbeamercolor{normal text}{fg = RWTHblack}
\ifdim\beamer@headheight>0pt
% if head height is 0pt, use default frame title
\setbeamercolor*{frametitle}{parent=sidebar}
\defbeamertemplate*{frametitle}{sidebar theme}
{%
\nointerlineskip%
\vskip-\beamer@headheight%
\vbox to \beamer@headheight{%
\vfil
\leftskip=-\beamer@leftmargin%
\advance\leftskip by0.6cm%
\rightskip=-\beamer@rightmargin%
\advance\rightskip by0.6cm plus1fil%
{\usebeamercolor[fg]{frametitle}\usebeamerfont{frametitle}\insertframetitle\par}%
{\usebeamercolor[fg]{framesubtitle}\usebeamerfont{framesubtitle}\insertframesubtitle\par}%
\textcolor{RWTHlightgrey}{\vbox{}%
\vskip-1em%
\vfil
\hrule height 1.3pt}
}%
}
\setbeamertemplate{logo} {
\hspace{+3pt}
\fboxrule1.3pt
\cfbox{RWTHlightgrey}{\parbox[b][2.14\textheight][b]{0.13\textwidth}{
\begin{centering}\textcolor{RWTHblack}{
\includegraphics[height=0.8cm]{logorwth.png}\\
\includegraphics[height=0.4cm]{cc.png}\\
\vspace{+2pt}
}
\end{centering}
}}
}
\defbeamertemplate*{headline}{sidebar theme}
{%
\begin{beamercolorbox}[wd=\paperwidth]{frametitle}
\ifx\beamer@sidebarside\beamer@lefttext%
\else%
\hfill%
\fi%
\ifdim\beamer@sidebarwidth>0pt%
\usebeamercolor[bg]{logo}%
\vrule width\beamer@sidebarwidth height 0mm%
\hskip-\beamer@sidebarwidth%
\hbox to \beamer@sidebarwidth{\hss\vbox to
\beamer@headheight{\vss\hbox{\color{fg}\insertlogo}\vss}\hss}%
\else%
\vrule width0pt height \beamer@headheight%
\fi%
\end{beamercolorbox}
}
\fi
\def\beamer@sidebarformat#1#2#3{%
\begin{beamercolorbox}[wd=\beamer@sidebarwidth,leftskip=#1,rightskip=1ex plus1fil,vmode]{#2}
\vbox{}%
#3\par%
\vbox{}%
\vskip-1.5ex%
\end{beamercolorbox}
}
\defbeamertemplate*{section in sidebar}{sidebar theme}
{%
\vbox{%
\vskip1ex%
\beamer@sidebarformat{3pt}{section in sidebar}{\insertsectionhead}%
}%
}
\defbeamertemplate*{section in sidebar shaded}{sidebar theme}
{%
\vbox{%
\vskip1ex%
\beamer@sidebarformat{3pt}{section in sidebar shaded}{\insertsectionhead}%
}%
}
%\defbeamertemplate*{subsection in sidebar}{sidebar theme}
{%
% \beamer@sidebarformat{5pt}{subsection in sidebar}{\insertsubsectionhead}%
}
\defbeamertemplate*{subsection in sidebar shaded}{sidebar theme}
{%
\beamer@sidebarformat{5pt}{subsection in sidebar shaded}{\insertsubsectionhead}%
}
\defbeamertemplate*{subsubsection in sidebar}{sidebar theme}
{%
% \beamer@sidebarformat{7pt}{subsubsection in sidebar}{\insertsubsubsectionhead}%
}
%\defbeamertemplate*{subsubsection in sidebar shaded}{sidebar theme}
{%
\beamer@sidebarformat{7pt}{subsubsection in sidebar shaded}{\insertsubsubsectionhead}%
}
\ifdim\beamer@sidebarwidth>0pt
% Sidebar
\setbeamersize{sidebar width \beamer@sidebarside=\beamer@sidebarwidth}
\defbeamertemplate*{sidebar \beamer@sidebarside}{sidebar theme}
{
\vspace{-33pt}
\beamer@tempdim=\beamer@sidebarwidth%
\advance\beamer@tempdim by -0pt%
{\usebeamerfont{title in sidebar}%
\vskip1.5em%
\hskip1.5pt%
\usebeamercolor[RWTHblack]{title in sidebar}%
\insertshorttitle[width=\beamer@tempdim,center,respectlinebreaks]\par%
\vskip1.25em%
}%
\insertverticalnavigation{\beamer@sidebarwidth}%
\vfill
\ifx\beamer@sidebarside\beamer@lefttext%
\else%
\usebeamercolor{normal text}%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt%
\fi%
}%
\ifx\beamer@sidebarside\beamer@lefttext%
\defbeamertemplate*{sidebar right}{sidebar theme}
{%
\vfill%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt}
\fi
% Margins
\setbeamersize{text margin left=0.5cm,text margin right=0.5cm}
\fi
\mode
<all>