-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerouterthemeNPBT-FOM.sty
88 lines (86 loc) · 3.08 KB
/
beamerouterthemeNPBT-FOM.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
\ProvidesPackage{beamerouterthemeNPBT-FOM}[2019/05/30 v4.3.0 Beamer Outer Theme FOM]
% ===========================================================================
% beamerouterthemeNPBT-FOM.sty
% ============================-----------------------------------------------
%
% (C) in 2011-2018 by Norman Markgraf (nmarkgraf(at)hotmail(dot)com)
%
% ---------------------------------------------------------------------------
%
\mode<presentation>
% ---------------------------------------------------------------------------
% ---------------------------------------------------------------------------
%
% Frame title template:
%
\defbeamertemplate{frametitle}{old}
{
\leavevmode
\hbox{%
\begin{beamercolorbox}[ht=6ex,leftskip=.4cm,wd=\paperwidth]{frametitle}%
% \strut%
{\small%
\ifthenelse{\equal{\thesection}{0}}{% then:
{%
\usebeamercolor[fg]{section in head}%
\usebeamerfont{section in head}%
\phantom{\thesection.}~\NoHyper%
\insertsection%
\endNoHyper%
}\\\vspace*{-1.03ex}%
{%
\usebeamercolor[fg]{frametitle in head}%
\usebeamerfont{section in head}%
~\phantom{\thesection.}%
\usebeamerfont{frametitle in head}%
\Large\insertframetitle%
}%
}{%else:
\ifthenelse{\equal{\thesubsection}{0}}{% then:
{%
\usebeamercolor[fg]{section in head}%
\usebeamerfont{section in head}%
\thesection.~\NoHyper\insertsection\endNoHyper%
}\\\vspace*{-1.03ex}%
{%
\usebeamercolor[fg]{frametitle in head}%
\usebeamerfont{section in head}%
~\phantom{\thesection.}%
\usebeamerfont{frametitle in head}%
\Large\insertframetitle%
}%
}{% else:
{%
\usebeamercolor[fg]{subsection in head}%
\usebeamerfont{subsection in head}%
\thesection.\thesubsection.~\insertsubsection%
}\\\vspace*{-1.03ex}%
{%
\usebeamercolor[fg]{frametitle in head}%
\usebeamerfont{subsection in head}%
~\phantom{\thesection.\thesubsection.}
\usebeamerfont{frametitle in head}%
\Large\insertframetitle}%
}
}%
}%
\strut
\vspace*{-0.875em}
\includegraphics[%
width=0.9\paperwidth%
]{%
\lineimage%
}%
\begin{tikzpicture}[remember picture, overlay]
\node[shift={(\logoxshift,\logoyshift)},inner sep=0pt] at (current page.north east){%
\includegraphics[width=\logowidth,height=\logoheight]{\logoimage}%
};%
\end{tikzpicture}%
\end{beamercolorbox}%
}%
}
% ---------------------------------------------------------------------------
\mode<all>
%
% ===========================================================================
%