This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
forked from mnm-team/latex-beamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerinnerthemelmu.sty
249 lines (217 loc) · 7.95 KB
/
beamerinnerthemelmu.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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
\mode<presentation>
% Length definitions as given in the LMU Corporate Design Manual
%\newlength{\m} % Multiplicator corresponding to aspect ratio
%\typeout{Paperwidth: \the\paperwidth}
%\setlength{\m}{\dimexpr(\paperwidth/254.0pt)\relax}
%\newlength{\x} % Distance of Box from Edge
%\setlength{\x}{\m*7mm}
%\newlength{\a} % Height of Box
%\setlength{\a}{\m*18.4mm}
%\newlength{\b} % Separation of Boxes
%\setlength{\b}{\m*2mm}
%\newlength{\h} % Heightof Header
%\setlength{\h}{\m*29mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Background %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{background}{
\begin{tikzpicture}[line width=0.1mm]
\useasboundingbox (0,0) rectangle (\the\paperwidth,\the\paperheight);
\fill[color=lmu@background1] (0,\the\paperheight-17mm) rectangle (\the\paperwidth,\the\paperheight);
\node[anchor=south west,inner sep=0] at (2mm,\the\paperheight-15mm) {
\includegraphics[height=13mm]{lmulogogreen.png} };
\draw[color=lmu@green] (31.2mm,\the\paperheight-15mm)
rectangle (\the\paperwidth-40mm,\the\paperheight-2mm);
\node[anchor=south east,inner sep=0,draw,color=lmu@green,
minimum width=0.25\textwidth, minimum height=13mm, align=left] at
(\the\paperwidth-2mm,\the\paperheight-15mm) {
\includegraphics[width=0.2\textwidth, height=13mm]{mnmlogo}%
};
\end{tikzpicture}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Title & Part Pages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pgfdeclareimage[height=.6\paperheight]{lmu-siegel-large}{siegel}
\setbeamertemplate{title page}{%
\setlength{\unitlength}{\paperwidth}
\begin{tikzpicture}[remember picture,overlay]
% Big siegel in the bottom right corner on the title page
\node[inner sep=0pt, anchor=south east, opacity=0.6] at ($ (current page.south east) + (4ex, -5ex) $)
{
\pgfuseimage{lmu-siegel-large}%
};
\end{tikzpicture}%
\put(0,-0.45){%
\begin{minipage}[b][0.85\paperheight]{\textwidth}
\ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi
\vfill%
\ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi
\ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi
%\usebeamertemplate*{title separator}
\ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi
\ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi
\vfill
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
\vfill
\vspace*{1mm}
\end{minipage}
}%
}
\def\maketitle{%
\ifbeamer@inframe
\titlepage
\else
\frame[plain,noframenumbering]{\titlepage}
\fi
}
\def\titlepage{%
\usebeamertemplate{title page}
}
\setbeamertemplate{title graphic}{
\vbox to 0pt {
\vspace*{2em}
\inserttitlegraphic%
}%
\nointerlineskip%
}
\setbeamertemplate{title}{
\raggedright%
\linespread{1.0}%
\inserttitle%
\par%
\vspace*{0.5em}
}
\setbeamertemplate{subtitle}{
\raggedright%
\insertsubtitle%
\par%
\vspace*{0.25em}
}
%\newlength{\lmu@titleseparator@linewidth}
%\setlength{\lmu@titleseparator@linewidth}{0.4pt}
%\setbeamertemplate{title separator}{
% \tikzexternaldisable%
% \begin{tikzpicture}
% \fill[fg] (0,0) rectangle (\textwidth, \lmu@titleseparator@linewidth);
% \end{tikzpicture}%
% \tikzexternalenable%
% \par%
%}
\setbeamertemplate{author}{
\setlength{\baselineskip}{3.5em}
\insertauthor%
\par%
\vspace*{0.25em}
}
\setbeamertemplate{date}{
\insertdate%
\par%
}
\setbeamertemplate{institute}{
\vspace*{3mm}
\insertinstitute%
\par%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Table Of Contents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\setbeamertemplate{sections/subsections in toc}[ball]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Navigation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%empty sidebar because we want our navigation symbols to be in the footer
\setbeamertemplate{sidebar right}{}
\setbeamertemplate{navigation symbols}
{%
\ifnum\thepage>1\relax%
\insertslidenavigationsymbol%
\insertframenavigationsymbol%
\insertsubsectionnavigationsymbol%
\insertsectionnavigationsymbol%
%\insertdocnavigationsymbol
%\insertbackfindforwardnavigationsymbo}
\fi
}
%%%%%%%%%%%%%%%%%%%%%%% Itemize & Enumerate Environments %%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{itemize items}{\textbullet}
%%%%%%%%%%%%%%%%%%%%%%%%%%% Description Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Block Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\inserttotalframenumber{100}
\newlength{\lmu@blocksep}
\newlength{\lmu@blockadjust}
\setlength{\lmu@blocksep}{0.75ex}
\setlength{\lmu@blockadjust}{0.25ex}
\providecommand{\lmu@strut}{%
\vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz()}%
}
\newcommand{\lmu@block}[1]{
\par\vskip\medskipamount%
\setlength{\parskip}{0pt}
\ifbeamercolorempty[bg]{block title#1}{%
\begin{beamercolorbox}[rightskip=0pt plus 4em]{block title#1}}{%
\ifbeamercolorempty[bg]{block title}{%
\begin{beamercolorbox}[rightskip=0pt plus 4em]{block title#1}%
}%
{%
\begin{beamercolorbox}[
sep=\dimexpr\lmu@blocksep-\lmu@blockadjust\relax,
leftskip=\lmu@blockadjust,
rightskip=\dimexpr\lmu@blockadjust plus 4em\relax
]{block title#1}%
}}%
\usebeamerfont*{block title#1}%
\lmu@strut%
\insertblocktitle%
\lmu@strut%
\end{beamercolorbox}%
\nointerlineskip%
\ifbeamercolorempty[bg]{block body#1}{%
\begin{beamercolorbox}[vmode]{block body#1}}
{
\ifbeamercolorempty[bg]{block body}{%
\begin{beamercolorbox}[vmode]{block body#1}%
}{%
\begin{beamercolorbox}[sep=\lmu@blocksep, vmode]{block body#1}%
\vspace{-\lmu@parskip}
}
}%
\usebeamerfont{block body#1}%
\setlength{\parskip}{\lmu@parskip}%
}
\setbeamertemplate{block begin}{\lmu@block{}}
\setbeamertemplate{block alerted begin}{\lmu@block{ alerted}}
\setbeamertemplate{block example begin}{\lmu@block{ example}}
\setbeamertemplate{block end}{\end{beamercolorbox}\vspace*{0.2ex}}
\setbeamertemplate{block alerted end}{\end{beamercolorbox}\vspace*{0.2ex}}
\setbeamertemplate{block example end}{\end{beamercolorbox}\vspace*{0.2ex}}
\newlength{\lmu@parskip}
\setlength{\lmu@parskip}{0.5em}
\setlength{\parskip}{\lmu@parskip}
\linespread{1.15}
\setbeamertemplate{block begin}{\lmu@block{}}
\setbeamertemplate{block alerted begin}{\lmu@block{ alerted}}
\setbeamertemplate{block example begin}{\lmu@block{ example}}
\setbeamertemplate{block end}{\end{beamercolorbox}\vspace*{0.2ex}}
\setbeamertemplate{block alerted end}{\end{beamercolorbox}\vspace*{0.2ex}}
\setbeamertemplate{block example end}{\end{beamercolorbox}\vspace*{0.2ex}}
%%%%%%%%%%%%%%%%%%%%%%%%% Theorem & Proof Environment %%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{caption label separator}{: }
\setbeamertemplate{caption}[numbered]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Figures & Tables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Footnotes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{footnote}{%
\parindent 0em\noindent%
\raggedright
\usebeamercolor{footnote}\hbox to 0.8em{\hfil\insertfootnotemark}\insertfootnotetext\par%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Bibliography Entries %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{bibliography item}{\insertbiblabel}
\defbeamertemplate{section page}{simple}{
\begin{center}
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead\par
\ifx\insertsubsectionhead\@empty\else
\usebeamercolor[fg]{subsection title}
\usebeamerfont{subsection title}
\insertsubsectionhead
\fi
\end{center}
}
\setbeamertemplate{section page}{%
\usebeamertemplate*{section page}
}
\mode<all>