-
Notifications
You must be signed in to change notification settings - Fork 44
/
beamerouterthemeNTNUhorizontal.sty
65 lines (64 loc) · 2.31 KB
/
beamerouterthemeNTNUhorizontal.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
%
% Outer Theme, i.e. footline, headline etc
%
\ProvidesPackage{beamerouterthemeNTNUhorizontal}[2021/08/26 v1.2 A LaTeX beamer theme in the corporate design of NTNU]
\makeatletter
\setbeamerfont{footline}{size=\tiny}
\setbeamercolor{text in footline}{bg=NTNUBlue, fg=white}
\setbeamercolor{palette tertiary}{bg=NTNUBlue, fg=white}
\setbeamercolor{page number in head/foot}{fg=white}
\setlength{\footlineheight}{0.05\paperheight}
\defbeamertemplate*{footline}{NTNUhorizontal}%
{%
\leavevmode%
\centering
\hbox{%
\begin{beamercolorbox}[wd=.667\paperwidth,ht=\footlineheight,dp=0.4\footlineheight,left]{palette tertiary}%
\hspace*{3em}%
\vspace*{.1\footlineheight}%
\usebeamercolor[fg]{page number in head/foot}%
\usebeamerfont{page number in head/foot}%
\insertframenumber{}%
\ifntnu@displayTotalFrameNumber%
\ /\ \inserttotalframenumber%
\fi%
\end{beamercolorbox}\hspace{-.1pt}%Hacked up to now
\begin{beamercolorbox}[wd=.3331\paperwidth,ht=\footlineheight,dp=0.4\footlineheight,right]{palette tertiary}%
\hfill%
\vspace*{-.1\footlineheight}%
\includegraphics[height=.8\footlineheight]{ntnu_uten_slagord_neg.png}%
\hspace*{2em}%
\end{beamercolorbox}%
}%
}%
\defbeamertemplate*{footline}{NTNUhorizontalempty}%
{%
\leavevmode%
\centering
\hbox{%
\begin{beamercolorbox}[wd=.667\paperwidth,ht=\footlineheight,dp=0.4\footlineheight,left]{palette tertiary}%
\end{beamercolorbox}\hspace{-.1pt}%Hacked up to now
\begin{beamercolorbox}[wd=.3331\paperwidth,ht=\footlineheight,dp=0.4\footlineheight,right]{palette tertiary}%
\hfill%
\vspace*{-.1\footlineheight}
\includegraphics[height=.8\footlineheight]{ntnu_uten_slagord_neg.png}%
\hspace*{2em}%
\end{beamercolorbox}%
}%
\begin{tikzpicture}[remember picture,overlay]% title
\node[text=NTNUBlue, rotate=90, anchor=center, font=\tiny\mdseries, yshift=.04\paperwidth, xshift=.03\paperheight, scale=1.4] at (current page.east) {\ntnu@name};%
\end{tikzpicture}%
}%
\renewcommand{\maketitle}[0]
{%
\setbeamertemplate{headline}[NTNU]%
\setbeamertemplate{footline}[NTNUhorizontalempty]%
\ifbeamer@inframe%
\titlepage%
\else%
\frame[t]{\titlepage}%
\fi%
\setbeamertemplate{headline}[NTNU]%
\setbeamertemplate{footline}[NTNUhorizontal]%
}
\makeatother