-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeamerinnerthemelu.sty
139 lines (122 loc) · 4.18 KB
/
beamerinnerthemelu.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
%% beamerinnerthemelu.sty
%% Copyright 2023 J.P. van Leenen
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2008 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is J.P. van Leenen.
\mode<presentation>
\DeclareOptionBeamer{addstandoutfootline}{\def\beamer@lu@addstandoutfootline{#1}}
\ProcessOptionsBeamer
\defbeamertemplate*{title page}{leidenuniv}[1][]
{
\begin{tikzpicture}[remember picture, overlay]
\fill[darkblueLU] (current page.north west) rectangle (current page.east);
\end{tikzpicture}
\begin{beamercolorbox}[wd=1\paperwidth,left, sep=1ex, rightskip=0.15\paperwidth]{title}
\usebeamerfont{title}\leftskip=0.15\paperwidth \noindent \inserttitle\par
\end{beamercolorbox}
\nointerlineskip%
\begin{columns}[T]%
\begin{column}{0.7\paperwidth}%
\begin{beamercolorbox}[left, leftskip=.15\paperwidth, sep=.5ex]{title}%
\usebeamerfont{subtitle}\usebeamercolor{subtitle}\insertsubtitle\par%
\end{beamercolorbox}%
\end{column}%
\begin{column}{0.3\paperwidth}%
\begin{beamercolorbox}[right, rightskip=0.15\paperwidth, sep=.5ex]{title}
\usebeamerfont{date}\insertdate\par
\end{beamercolorbox}
\end{column}%
\end{columns}%
\ifx\beamer@author\@empty
\else
\insertauthor
\nointerlineskip%
\fi
\begin{columns}
\begin{column}{.5\paperwidth}
\leftskip=.03\paperwidth
\begin{beamercolorbox}{date}
\includegraphics[height=0.3\paperheight]{logo-universiteitleiden-english.pdf}
\end{beamercolorbox}
\end{column}
\begin{column}{.5\paperwidth}
\begin{beamercolorbox}[right]{date}
\inserttitlegraphic
\end{beamercolorbox}
\rightskip=.03\paperwidth
\end{column}
\end{columns}
}
\def\ps@navigation@titlepage{%
\setbeamertemplate{footline}[titlepage footline]
\@nameuse{ps@navigation}}
\addtobeamertemplate{title page}{\thispagestyle{navigation@titlepage}}{}
\defbeamertemplate*{itemize item}{lu}{%
\usebeamerfont*{itemize item}{$\vcenter{\hbox{\tiny$\bullet$}}$}%
}
\setlength{\leftmargini}{0.4cm}
\setlength{\leftmarginii}{0.4cm}
\defbeamertemplate*{itemize subitem}{lu}{\usebeamerfont*{itemize subitem}\textbf{-}}
\defbeamertemplate*{frametitle}{closure}{%
\setbeamercolor{closure}{bg=white, fg=white}
\vspace{-1pt}
\begin{beamercolorbox}[wd=1\paperwidth,center, sep=1ex, rightskip=0.15\paperwidth, ht=0.62\paperheight]{title}
\usebeamerfont{title}\leftskip=0.15\paperwidth \noindent \insertframetitle \par
\vspace{0.3\paperheight}
\end{beamercolorbox}
\begin{columns}
\begin{column}{.5\paperwidth}
\leftskip=.03\paperwidth
\begin{beamercolorbox}{date}
\includegraphics[height=0.3\paperheight]{logo-universiteitleiden-english.pdf}
\end{beamercolorbox}
\end{column}
\begin{column}{.5\paperwidth}
\begin{beamercolorbox}[right]{date}
\inserttitlegraphic
\end{beamercolorbox}
\rightskip=.03\paperwidth
\end{column}
\end{columns}
}
\providebool{lu@closure}
\define@key{beamerframe}{closure}[true]{
\booltrue{lu@closure}
\begingroup
\setbeamertemplate{frametitle}[closure]
}
\apptocmd{\beamer@reseteecodes}{%
\ifbool{lu@closure}{%
\endgroup
\boolfalse{lu@closure}
}{}
}{}{}
\providebool{lu@standout}
\define@key{beamerframe}{standout}[true]{
\booltrue{lu@standout}
\begingroup
\color{white}
\setbeamercolor{background canvas}{bg=darkblueLU}
\setbeamercolor{frametitle}{fg=white,bg=darkblueLU}
\setbeamercolor{framesubtitle}{fg=white,bg=darkblueLU}
\ifx\beamer@lu@addstandoutfootline\@empty%
\else%
\setbeamertemplate{footline}{}%
\fi%
}
\apptocmd{\beamer@reseteecodes}{%
\ifbool{lu@standout}{%
\endgroup
\boolfalse{lu@standout}
}{}
}{}{}
\mode<all>