aboutsummaryrefslogtreecommitdiff
path: root/slides/2022-ct-days/beamerinnerthemergd.sty
blob: b96a415a6ce4e00c2ab43bfc29a93214d07c4157 (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
\mode<presentation>

%%%
% Title page
%%%
\defbeamertemplate*{title page}{rgd}[1][]{
  \begin{tikzpicture}[remember picture, overlay]
    \usebeamercolor{titlepage}
    % Add top-left triangle with university logo
    \filldraw[draw=rgdGray,fill=rgdGray]
      (current page.north west) --
      (current page.north) --
        node[draw=none,pos=0.5](LogoMul){\includegraphics[width=3.5cm]{img/mullvad}}
      (current page.west) --
      (current page.north west);
    \filldraw[draw=rgdGray,fill=rgdGray]
      (current page.north east) --
      (current page.north) --
        node[draw=none,pos=0.5](LogoKau){\includegraphics[width=3cm]{img/kau}}
      (current page.east) --
      (current page.north east);
    % Add title
    \node[
      text=fg,
      text width=0.75\paperwidth,
    ] (Title) at ([shift={(0,-0.5cm)}]current page){%
      \centering\usebeamerfont{title}\inserttitle\\%
    };
    % Add date
    \node[
      text=fg,
      text width=0.75\paperwidth,
      below=0pt of Title,
    ] (Subtitle) {%
      \centering\usebeamerfont{date}\today\\%
    };
    % Add authors
    \usebeamercolor{author}
    \node[
      text=fg,
      text width=0.75\paperwidth,
      below=0pt of Subtitle,
    ] (Author) {%
      \centering\usebeamerfont{author}\insertauthor\\%
    };
  \end{tikzpicture}
}

\mode<all>