This repository has been archived by the owner on Jun 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemeimise.sty
84 lines (71 loc) · 2.94 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
\usetheme{CambridgeUS}
\usecolortheme{dolphin}
\setbeamertemplate{headline}{}
\usepackage[export]{adjustbox}
\usepackage{xcolor}
\usepackage[quiet]{fontspec}
\mode<presentation>
\usepackage{amssymb}
\usepackage{tikz}
\setsansfont{Futura Book}
\setbeamertemplate{navigation symbols}{}
\definecolor{imiseblue}{HTML}{005FB9}
\setbeamercolor{footer}{fg=white, bg=imiseblue}
\setbeamercolor{title}{fg=darkred, bg=white}
\setbeamertemplate{itemize item}{\color{imiseblue}$\blacktriangleright$}
\setbeamertemplate{itemize subitem}{\color{imiseblue}$\blacktriangleright$}
\setbeamertemplate{section in toc}{\color{imiseblue}\inserttocsection}
\setbeamercolor{local structure}{fg=imiseblue}
\let\origframetitle=\frametitle
\renewcommand\frametitle[1]{\origframetitle
{
\setbeamertemplate{frametitle}[default][left]
\begin{tikzpicture}[remember picture,overlay]
\node [anchor=north east,xshift=0.4em,yshift=0.4em] at (current page.north east) % for unknown reasons, the x and y shift is necessary and different for each aspect ratio
{\includegraphics[width=0.35\textwidth,right]{img/unileipzig.pdf}};
\end{tikzpicture}
#1
}
}
\defbeamertemplate*{title page}{customized}[1][]
{
\setbeamertemplate{footline}{}
\begin{tikzpicture}[remember picture,overlay]
\node [anchor=north east,xshift=0.4em,yshift=0.4em] at (current page.north east) % for unknown reasons, the x and y shift is necessary for perfect alignment
{\includegraphics[width=0.35\textwidth,right]{img/unileipzig.pdf}};
\end{tikzpicture}
{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par}
\vspace{0.05\textheight}
\usebeamerfont{subtitle}\insertsubtitle\par
\vspace{0.15\textheight}% align blue box at bottom
\begin{beamercolorbox}[wd=\paperwidth,ht=0.6\textheight,dp=1ex,colsep=10pt,left]{footer}%
\usebeamerfont{author}\insertauthor\par
\usebeamerfont{date}\insertdate\par
~\\~\\~\\~\\
{\normalsize imise \hspace{-0.3em}\tiny\color{orange}~\scalebox{.4}{$\blacksquare$}}\\
Institut für Medizinische Informatik, Statistik und Epidemiologie\\~\\
\end{beamercolorbox}%
}
\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%
\hbox{%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=2.9ex,dp=1ex,colsep=0pt,left]{footer}%colsep and extra width to hopefully prevent white vertical lines in between color boxes
{\normalsize imise \hspace{-0.3em}\huge\color{orange}.}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.8\paperwidth,ht=2.9ex,dp=1ex,colsep=0pt,center]{footer}%
\usebeamerfont{title in head/foot}\insertshorttitle---\insertshortauthor---\insertshortdate
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=2.9ex,dp=1ex,colsep=0pt,right]{footer}%
\usebeamerfont{title in head/foot}\insertframenumber{} %/ \inserttotalframenumber
\hspace*{1ex}
\end{beamercolorbox}
}%
\fi%
}
\makeatletter
\mode<all>