-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathudesc.sty
164 lines (137 loc) · 6.26 KB
/
udesc.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
% Copyright 2009 by Pim Vullers
%
% 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.
\usepackage[most]{tcolorbox}
%%%
%%% Inherit definitions from existing themes (DO NOT MODIFY THESE)
%%%
% Layout scheme for outer elements: split header and footer
\useoutertheme{split}
% Color scheme for outer elements: use background colors
\usecolortheme{whale}
% Layout scheme for inner elements: rounded elements
\useinnertheme{rectangles}
% Color scheme for inner elements: use foreground colors
\usecolortheme{orchid}
%%%
%%% Tweak definitions of inner theme to match personal preferences (MODIFY THESE)
%%%
% Itemize items: default (triangle), circle, square, ball
\setbeamertemplate{itemize items}[circle]
% Enumerate items: default, circle, square, ball
\setbeamertemplate{enumerate items}[circle]
% Outline: default, sections numbered, subsections numbered, circle, square, ball, ball unnumbered
\setbeamertemplate{sections/subsections in toc}[default]
% General blocks:
\setbeamertemplate{blocks}[default]
\newenvironment{bash}[1]{
\setbeamercolor{block body example}{bg=black, fg=white}
\setbeamertemplate{blocks example}[default]
\setbeamercolor{block title example}{bg=white}
\begin{exampleblock}{#1}}{\end{exampleblock}}
% Title page:
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=false]
% Part page:
\setbeamertemplate{part page}[default][colsep=-4bp,rounded=false]
% Navigation symbols:
\setbeamertemplate{navigation symbols}{}
%%%
%%% Tweak definitions of outer theme to match Radboud (website) style
%%%
% Background
\pgfdeclareimage[width=\paperwidth,height=\paperheight]{bg}{udesc_background}
\setbeamertemplate{background}{\pgfuseimage{bg}}
% Colors
\usecolortheme[RGB={54,88,65}]{structure}
\setbeamercolor{frametitle}{parent=subsection in head/foot}
\setbeamercolor{frametitle right}{parent=section in head/foot}
\pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{\paperheight}{%
color(0pt)=(frametitle.bg);
color(\paperwidth)=(frametitle.bg)}
\AtBeginDocument{
\pgfdeclareverticalshading{beamer@topshade}{\paperwidth}{%
color(0pt)=(bg);
color(4pt)=(black!50!bg)}
}
% Footline: AUTHOR | TITLE | DATE FRAMENUMBER
\defbeamertemplate*{footline}{udesc theme}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{subsection in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=1ex,center]{subsection in head/foot}%
\usebeamerfont{author in head/foot}\insertshortdate
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.416667\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=0.083333\paperwidth,ht=2.25ex,dp=1ex,right]{title in head/foot}%
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\defbeamertemplate*{headline}{udesc theme}{%
\leavevmode%
\@tempdimb=2.8375ex%
\multiply\@tempdimb by\beamer@sectionmax%
\pgfdeclareimage[height=1.2\@tempdimb]{logo}{udesc_logo}%
\pgfdeclareimage[height=1.2\@tempdimb]{logo2}{grupo_logo}%
\logo{\pgfuseimage{logo}}%
\ifdim\@tempdimb>0pt%
\advance\@tempdimb by 2.125ex%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb,left]{subsection in head/foot}%
\insertlogo%
\logo{\pgfuseimage{logo2}}%
\insertlogo%
\end{beamercolorbox}%
\begin{beamercolorbox}[right, wd=.5\paperwidth]{subsection in head/foot}%
\vbox to\@tempdimb{\vfil\insertsectionnavigation{.3\paperwidth}\vfil}%
\end{beamercolorbox}%
\fi%
}
\defbeamertemplate*{frametitle}{udesc theme}{%
\vskip-2pt%
\hbox{\leavevmode
\advance\beamer@leftmargin by -12bp%
\advance\beamer@rightmargin by -12bp%
\beamer@tempdim=\textwidth%
\advance\beamer@tempdim by \beamer@leftmargin%
\advance\beamer@tempdim by \beamer@rightmargin%
\hskip-\Gm@lmargin\hbox{%
\setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\paperwidth}%
\vbox{}\vskip-.95ex%
\leftskip0.9cm%
\rightskip0.3cm plus1fil\leavevmode
\insertframetitle%
\ifx\insertframesubtitle\@empty%
\strut\par%
\else
\par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}\strut\par}%
\fi%
\nointerlineskip
\vbox{}%
\end{minipage}}%
\beamer@tempdim=\ht\beamer@tempbox%
\advance\beamer@tempdim by 1pt%
\begin{pgfpicture}{0.1mm}{0pt}{1.01\paperwidth}{\beamer@tempdim}
\usebeamercolor{frametitle right}
\pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}}
\pgfusepath{clip}
\pgftext[left,base]{\pgfuseshading{beamer@frametitleshade}}
\end{pgfpicture}
\hskip-\paperwidth%
\box\beamer@tempbox%
}%
\hskip-\Gm@rmargin%
}%
% \nointerlineskip
% \vskip-0.2pt
% \hbox to\textwidth{\hskip-\Gm@lmargin\pgfuseshading{beamer@topshade}\hskip-\Gm@rmargin}
% \vskip-2pt
}