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
|
% Copyright 2015 Detlev Conrad Mielczarek
% Based on previous work by Herbert Voss (FU Berlin Theme) and Beamer Templates
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
\ProvidesPackage{beamerouterthemeDetlevCM}[2015/12/07 v 1.02 (dcm) http://detlevcm.eu ]
\mode<presentation>
\setlength\textwidth{\paperwidth}
\addtolength\textwidth{-30pt}
\setbeamersize{text margin left=15pt,text margin right=15pt}
%%% define height as relative to texwidth for 3:2 photographs
\newlength\DCM@image@height\setlength\DCM@image@height{0.223\textwidth}
%%% Width of the image, 1.5x the height
\newlength\DCM@image@width\setlength\DCM@image@width{0.3345\textwidth}
% The logo for the top right corner
%% Old Value: 2.0em
\pgfdeclareimage[interpolate=true,height=1.7em]{logo}{LogoTop}
% 3 images as decoration
\pgfdeclareimage[interpolate=true,width=\the\DCM@image@width,height=\the\DCM@image@height]{Image1}{FS-img1}
\pgfdeclareimage[interpolate=true,width=\the\DCM@image@width,height=\the\DCM@image@height]{Image2}{FS-img2}
\pgfdeclareimage[interpolate=true,width=\the\DCM@image@width,height=\the\DCM@image@height]{Image3}{FS-img3}
\newlength\titlevsep\setlength\titlevsep{2mm}
\setbeamercolor{section in head/foot}{parent=palette tertiary}
\setbeamercolor{subsection in head/foot}{parent=palette secondary}
\setbeamercolor{author in head/foot}{parent=section in head/foot}
\setbeamercolor{title in head/foot}{parent=section in head/foot}
\setbeamercolor{date in head/foot}{parent=section in head/foot}
% Define the headline
\defbeamertemplate*{headline}{Leeds theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
%
\begin{beamercolorbox}{section in head/foot}
\vskip2pt\insertnavigation{\paperwidth}\vskip2pt
\end{beamercolorbox}%
}
% Define the footline
\defbeamertemplate*{footline}{Leeds}
{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.33333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.33333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.33333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}%\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}
}%
\vskip0pt%
}
% Frame title
\defbeamertemplate*{frametitle}{Leeds}
{%
\begin{beamercolorbox}[ht=1.6em,leftskip=15pt,rightskip=15pt,wd=\paperwidth]{section in head/foot}
{%
\usebeamerfont*{frametitle}
\usebeamercolor[fg]{frametitle}
\raisebox{0.3em}{\insertframetitle} % http://www.personal.ceu.hu/tex/spacebox.htm#raisebox
}
\hfill
\pgfuseimage{logo}
\vspace{0.1em}
\end{beamercolorbox}
}
% Sidebar - Switched off
\setbeamertemplate*{sidebar left}{}
\setbeamertemplate*{sidebar right}{}
\setbeamertemplate*{sidebar canvas left}{}
\setbeamertemplate*{sidebar canvas right}{}
\def\beamer@fteright{\vskip0.35cm\advance\leftskip by 1.7cm\advance\rightskip by1.7cm}
% From FU theme
% Frame title continuations, FU
\defbeamertemplate*{frametitle continuation}{DetlevCM}{\insertcontinuationcountroman}
\newcommand\fachbereich[1]{\def\insertfachbereich{#1}}
\fachbereich{}%
\defbeamertemplate*{title page}{DetlevCM}{%
%% New implemenation for blank frame title with only the logo
\frametitle{~}
%% pull up images a bit
\vspace{-1em}
%% Title Page Images - 3 Images side by side
\begingroup\fboxsep=0pt
\pgfuseimage{Image1}
\pgfuseimage{Image2}
\pgfuseimage{Image3}
\endgroup
\par\vfill
{\usebeamerfont{title}\usebeamercolor[bg]{frametitle}\inserttitle}\\[\titlevsep]
\ifx\insertsubtitle\@empty\else\vskip0.25em%
{\usebeamerfont{subtitle}\insertsubtitle\par}%
\fi%
\par\vfill
\begin{beamercolorbox}[sep=0pt]{author}
{\usebeamerfont{author}\insertauthor}\\
{\usebeamerfont{institute}\insertinstitute}
\end{beamercolorbox}
\par\vfill
{
\usebeamerfont{date}\usebeamercolor*[fg]{date}\insertdate
}
\par\vfill~\vspace*{-\fill}%
}% End of Title Page definition
\endinput
\mode<all>
|