-
Notifications
You must be signed in to change notification settings - Fork 44
/
beamerouterthemeNTNUvertical.sty
45 lines (42 loc) · 1.5 KB
/
beamerouterthemeNTNUvertical.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
%
% Outer Theme, i.e. footline, headline etc
%
\ProvidesPackage{beamerouterthemeNTNUvertical}[2021/08/26 v1.2 A LaTeX beamer theme in the corporate design of NTNU]
\makeatletter
\mode<presentation>
\defbeamertemplate*{footline}{NTNUvertical}{}
\setbeamersize{sidebar width left=.075\paperwidth}
\setbeamercolor{page number in head/foot}{fg=white}
\setbeamerfont{page number in head/foot}{size=\footnotesize, series=\mdseries}
\defbeamertemplate*{sidebar left}{NTNUvertical}{%
\vskip4em%
\hspace*{.0075\paperwidth}\includegraphics[width=.055\paperwidth]{\ntnu@sidelogo}%
\vfill
\begin{beamercolorbox}[ht=2em, wd=.075\paperwidth, dp=.02\paperwidth, center]{footline}%
\usebeamercolor[fg]{page number in head/foot}%
\usebeamerfont{page number in head/foot}
\insertframenumber{}%
\ifntnu@displayTotalFrameNumber
\ /\ \inserttotalframenumber%
\fi%
\end{beamercolorbox}
}%
\defbeamertemplate*{sidebar left}{NTNUverticalplain}{%
\vskip4em%
\hspace*{.0075\paperwidth}\includegraphics[width=.06\paperwidth]{\ntnu@sidelogo}%
\begin{tikzpicture}[remember picture,overlay]% title
\node[text=white, rotate=90, anchor=center, font=\tiny\mdseries, yshift=-.04\paperwidth, xshift=-.09\paperheight, scale=1.2] at (current page.west) {\ntnu@name};%
\end{tikzpicture}%
}%
\renewcommand{\maketitle}[0]
{%
\setbeamertemplate{sidebar left}[NTNUverticalplain]%
\ifbeamer@inframe%
\titlepage%
\else%
\frame[t]{\titlepage}%
\fi%
\setbeamertemplate{sidebar left}[NTNUvertical]%
}
\makeatother
\mode<all>