-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbeamerouterthemeNTNUplain.sty
42 lines (40 loc) · 1.22 KB
/
beamerouterthemeNTNUplain.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
%
% Outer Theme, i.e. footline, headline etc
%
\ProvidesPackage{beamerouterthemeNTNUplain}[2021/2021/08/26 v1.2 A LaTeX beamer theme in the corporate design of NTNU]
\makeatletter
\setbeamerfont{footline}{size=\tiny}
\setlength{\footlineheight}{0.1\paperheight}
\defbeamertemplate*{footline}{NTNUplain}%
{%
\leavevmode%
\centering
\hbox{
\begin{beamercolorbox}[wd=.666666\paperwidth,ht=\footlineheight,dp=0.4\footlineheight,left]{palette tertiary}%
\hspace{3em}\includegraphics[width=.3\textwidth]{\ntnu@logofile}
\end{beamercolorbox}\hspace{-1pt}%Hacked up to now
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=\footlineheight,dp=0.4\footlineheight,right]{palette tertiary}%
\hfill
\usebeamercolor[fg]{page number in head/foot}%
\usebeamerfont{page number in head/foot}
\insertframenumber{}%
\ifntnu@displayTotalFrameNumber%
\ /\ \inserttotalframenumber%
\fi%
\hspace*{3em}%
\end{beamercolorbox}
}%
}
\renewcommand{\maketitle}[0]
{%
\setbeamertemplate{headline}[NTNU]%
\setbeamertemplate{footline}[NTNUempty]%
\ifbeamer@inframe%
\titlepage%
\else%
\frame[t]{\titlepage}%
\fi%
\setbeamertemplate{headline}[NTNU]%
\setbeamertemplate{footline}[NTNUplain]%
}
\makeatother