aboutsummaryrefslogtreecommitdiff
path: root/slides/2018-ct-intro/beamerouterthemergd.sty
blob: ba757c62453b4639fc399e4df2a3903587280fc2 (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
\mode<presentation>

%%%
% Frame header
%%%
\defbeamertemplate*{frametitle}{corporate}[1][]{%
  \nointerlineskip
  % Add frame title
  \begin{beamercolorbox}[
    wd=\paperwidth,
    ht=3ex,
    dp=1.5ex,
    left,
    leftskip=2ex
  ]{header}
    \insertframetitle
  \end{beamercolorbox}
  % Add line after header
  \nointerlineskip
  \begin{beamercolorbox}[
    wd=\paperwidth,
    ht=0.25ex
  ]{trailer}
  \end{beamercolorbox}%
}

%%%
% Frame trailer
%%%
\defbeamertemplate*{footline}{corporate}{%
  \hbox{%
    % Add mail
    \begin{beamercolorbox}[
      wd=0.22\paperwidth,
      ht=2ex,
      dp=0.5ex,
      left,
      leftskip=2ex
    ]{trailer}
      \texttt{rasmus.dahlberg@kau.se}
    \end{beamercolorbox}%
    % Add author
    \begin{beamercolorbox}[
      wd=0.73\paperwidth,
      ht=2ex,
      dp=0.5ex,
      left,
      leftskip=2ex
    ]{header}
      %\insertauthor
      \inserttitle
    \end{beamercolorbox}%
    % Add page counter
    \begin{beamercolorbox}[
      wd=0.05\paperwidth,
      ht=2ex,
      dp=0.5ex,
      right,
      rightskip=1ex
    ]{header}
      \insertframenumber/\inserttotalframenumber
    \end{beamercolorbox}%
  }
}

\mode<all>