Ryan Rueger

ryan@rueg.re / picture / key / home
aboutsummaryrefslogtreecommitdiff
path: root/beamerinnerthemeibm.sty
blob: ce228c8a5073a31517f39476ac9e646d40e8ecdd (plain) (blame)
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
\usepackage{setspace}
\usepackage{etoolbox}

\setbeamertemplate{background}{
  \begin{tikzpicture}
    \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
    \fill[color=ibmblue50] (0,0) rectangle (\the\paperwidth,\the\paperheight);
    \ifnum\thepage>1\relax%
      \fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
    \fi
  \end{tikzpicture}
}

\defbeamertemplate*{title page}{customized}[1][]{%
  \usebeamercolor[fg]{titlepage}

  \ifdef{\topspace}{\topspace}{\vspace{3ex}}

  \begin{minipage}[t]{0.59\textwidth}
    \usebeamerfont{date}\insertdate
  \end{minipage}
  \begin{minipage}[c]{0.40\textwidth}
    \raggedleft
    \inserttitlegraphic{}
  \end{minipage}

  \ifdef{\titlespace}{\titlespace}{\vspace{5ex}}

  \begin{minipage}[t]{\ifdef{\titlewidth}{\titlewidth}{0.70}\linewidth}
    \raggedright

    {
    \usebeamerfont{title}
    \begin{spacing}{1.1}
      \inserttitle
    \end{spacing}
    }

    \ifdef{\printtitletag}{%
      \ifdef{\titletagspace}{\titletagspace}{\vspace{2ex}}

      % Must use spacing environment because there is a font size change
      \usebeamerfont{titletag}
      \begin{spacing}{1.1}
        \printtitletag
      \end{spacing}
    }{}

    \ifdef{\subtitlespace}{\subtitlespace}{\vspace{2ex}}

    % Must use spacing environment because there is a font size change
    \usebeamerfont{subtitle}
    \begin{spacing}{1.1}
      \insertsubtitle
    \end{spacing}
  \end{minipage}

  \ifdef{\printurl}{%
    \ifdef{\urlspace}{\urlspace}{\vspace{1ex}}

    \usebeamerfont{titleurl}{\printurl}
  }{}

  \ifdef{\authorspace}{\authorspace}{\vspace{2ex}} \vfill

  \usebeamerfont{author}\insertauthor

  \usebeamerfont{institute}\insertinstitute

  \ifdef{\bottomspace}{\bottomspace}{\vspace{2ex}}
}