summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/themes/beamertheme-npbt/beamerouterthemeNPBT_FOM.sty
blob: ebee40419ddc69a5f87d0ad2f30332130b4f3502 (plain)
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}[2018/08/15 v4.1 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>
%
% ===========================================================================
%