-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeamerthemeimise.sty
164 lines (145 loc) · 4.95 KB
/
beamerthemeimise.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
% IMISE Beamer Theme v3 2024-07-10
\usecolortheme{dolphin}
\usepackage{iftex}
\ifpdftex
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\else
\usepackage{fontspec}
\newfontfamily\jost{Jost}[
Path = ./imise-font/,
Extension = .ttf,
UprightFont = *-Regular,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
NFSSFamily=jostttf
]
\AtBeginDocument{\addfontfeatures{RawFeature=+ss01}} % Futura-like 'a'
\renewcommand{\rmdefault}{jostttf}
\renewcommand{\sfdefault}{jostttf}
\fi
\setbeamertemplate{headline}{}
\usepackage[export]{adjustbox}
\usepackage{xcolor}
\mode<presentation>
\usepackage{amssymb}
\usepackage{tikz}
\newlength\leftsidebar
\newlength\rightsidebar
\makeatletter
\setlength\leftsidebar{\beamer@leftsidebar}
\setlength\rightsidebar{\beamer@rightsidebar}
\makeatother
\setbeamertemplate{navigation symbols}{}
%\definecolor{imiseblue}{HTML}{005FB9}
\definecolor{mediblue}{RGB}{0,138,201}
\definecolor{mixblue}{RGB}{0,167,214}
\definecolor{aquamarine}{RGB}{138,194,209}
\definecolor{lowertriangle}{RGB}{9,65,81}
%\setbeamercolor{footer}{fg=white, bg=imiseblue}
\setbeamercolor{title}{fg=black, bg=white}
\setbeamertemplate{itemize item}{\color{red}$\blacktriangleright$}
\setbeamertemplate{itemize subitem}{\color{red}$\blacktriangleright$}
\setbeamertemplate{section in toc}{\color{red}\inserttocsection}
\setbeamercolor{local structure}{fg=red}
%\setbeamerfont*{title}{family={\fontfamily{phv}},series=\bfseries,size=\LARGE}
\setbeamerfont*{title}{family=\sffamily,series=\bfseries,size=\LARGE}
\setbeamerfont*{subtitle}{series=\mdseries}% subtitle inherits from title, https://tex.stackexchange.com/questions/270188/beamer-separate-page-title-subtitle-author-date-fonts
\renewcommand\footnoterule{} % we have our own line in all the slides
\newcommand{\triangles}{
% upper triangle
\begin{tikzpicture}[overlay, remember picture]
\tikzset{shift={(current page.south east)}}
\coordinate (s0) at (0,0);
\coordinate (s1) at (0,\paperheight);% for unknown reasons, paperheight isn't enough
\coordinate (s2) at (-0.1\paperwidth,0);
\fill[mediblue] (s0) -- (s1) -- (s2) -- cycle;
\end{tikzpicture}
% lower triangle
\begin{tikzpicture}[overlay, remember picture]
\tikzset{shift={(current page.south east)}}
\coordinate (s0) at (0,0);
\coordinate (s1) at (0,0.35\textheight);
\coordinate (s2) at (-0.35\paperwidth,0);
\fill[fill=lowertriangle,opacity=0.5] (s0) -- (s1) -- (s2) -- (s0);
\end{tikzpicture}
}
\newcommand{\medfak}{
\begin{tikzpicture}[overlay, remember picture]
\node [anchor=north west, inner sep=1pt,xshift=1.8em] at (current page.north west)
{\includegraphics[width=0.45\textwidth]{imise-img/medfak.pdf}};
\end{tikzpicture}
}
\newcommand{\imise}{
\begin{tikzpicture}[overlay, remember picture]
\node [anchor=south west, inner sep=1pt,xshift=2.3em] at (current page.south west)
{\includegraphics[width=0.3\textwidth]{imise-img/imise-logo.pdf}};
\end{tikzpicture}
}
\defbeamertemplate*{title page}{customized}[1][]
{
\setbeamertemplate{footline}{}
\vspace{0.25\textheight}
{\usebeamerfont{subtitle}\insertsubtitle\par}
\vspace{0.05\textheight}
{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par}
~\\
\usebeamerfont{date}\insertdate\par
\vspace{0.02\textheight}
\usebeamerfont{author}\insertauthor\par
\vspace{0.05\textheight}
\medfak{}
\imise{}
\triangles{}
}
\makeatother
\setbeamertemplate{footline}
{
% \vspace{1.5em} % put footnotes higher, unfortunately also
\ifnum\insertframenumber>1%
\vspace{-5em} %ifnum somehow moves it too far below, workaround
\leavevmode%
\begin{center}
\color{aquamarine}\rule{0.9\textwidth}{0.2pt}\\[0.9pt]
\color{lightgray}\rule{0.9\textwidth}{0.2pt}
\end{center}
\hbox{%
\begin{beamercolorbox}[wd=.8\paperwidth,ht=1.9ex,dp=2ex,colsep=0pt,center]{footer}%
\iflanguage{english}{Institute for Medical Informatics, Statistics and Epidemiology (IMISE)}%
{Institut für Medizinische Informatik, Statistik und Epidemiologie (IMISE)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=1.9ex,dp=2ex,colsep=0pt,right]{footer}%
\usebeamerfont{title in head/foot}\color{red}\insertframenumber{} %/ \inserttotalframenumber
\hspace*{1ex}
\end{beamercolorbox}
}
\begin{tikzpicture}[overlay, remember picture]
\node [anchor=south west, inner sep=0pt,xshift=0.05\textwidth,yshift=0.01\textheight] at (current page.south west)
{\includegraphics[width=0.08\textwidth]{imise-img/unileipzig-text.pdf}};
\end{tikzpicture}
%
\fi%
}
\makeatletter
\mode<all>
\AtEndDocument{
\setbeamertemplate{footline}{}
\begin{frame}[plain]
\medfak{}
\triangles{}
~\\~\\~\\~\\~\\~\\%vspace destroys the tikz drawing positions
{\Large\bfseries \iflanguage{english}{THANKS!}{VIELEN DANK!}\\~\\}
\textbf{\insertauthor{}}\\
\iflanguage{english}{Institute for Medical Informatics, Statistics and Epidemiology (IMISE)}%
{Institut für Medizinische Informatik, Statistik und Epidemiologie (IMISE)}\\
~\\
\address{}\\
~\\
T \telephone{}\\
~\\
\url{\email}\\
\url{www.imise.uni-leipzig.de}
\end{frame}
}