-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerinnerthemeemc.sty
80 lines (71 loc) · 2.45 KB
/
beamerinnerthemeemc.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerinnerthemeemc}[2016/02/27 EMC Beamer theme]
\RequirePackage{pgfopts}
\pgfkeys{/emc/inner/titlepage/.default=titlepage
}
\pgfkeys{
/emc/inner/titlepage/.cd,
.is choice,
notitlepage/.code=\@emc@inner@notitlepage,
titlepage/.code=\@emc@inner@titlepage
}
\newcommand{\emc@inner@setdefaults}{
\pgfkeys{/emc/inner/.cd,
titlepage=titlepage
}
}
\newcommand{\@emc@inner@notitlepage}{
\def\titlepagedrawing{
% do nothing;
}
}
\newcommand{\@emc@inner@titlepage}{
\def\titlepagedrawing{
\fill[color=bg] (0,0.8*\the\paperheight) rectangle(\the\paperwidth,\the\paperheight);
\foreach \x in {0,...,79}
\fill[color=structure] (0.0125*\the\paperwidth*\x,0.6*\the\paperwidth) rectangle(0.0125*\the\paperwidth*\x + 0.00625*\the\paperwidth,0.60625*\the\paperwidth);
\foreach \x in {0,...,79}
\fill[color=structure] (0.0125*\the\paperwidth*\x,0.03*\the\paperwidth) rectangle(0.0125*\the\paperwidth*\x + 0.00625*\the\paperwidth,0.03625*\the\paperwidth);
}
}
\mode<presentation>
\setbeamertemplate{background}{
\usebeamercolor{palette tertiary}%
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\ifnum\thepage=1\relax%
\titlepagedrawing
\fi
\ifnum\thepage>1\relax%
\foreach \x in {0,...,79}
\fill[color=structure] (0.0125*\the\paperwidth*\x,0.03*\the\paperwidth) rectangle(0.0125*\the\paperwidth*\x + 0.00625*\the\paperwidth,0.03625*\the\paperwidth);
\fi
\end{tikzpicture}
}
\defbeamertemplate*{title page}{emc}[1][]{
\centering\vskip3cm%
\begin{beamercolorbox}[wd=12cm, leftskip=3cm, sep= 8pt, #1]{title page header}
\centering\usebeamerfont{title}\inserttitle\par%
\end{beamercolorbox}%
\begin {beamercolorbox}[wd=12cm, leftskip=3cm, sep= 8pt, #1]{subtitle}
\centering\usebeamerfont{subtitle in title page}\insertsubtitle
\end {beamercolorbox}
\vskip0.45cm%
{\pgfuseimage{fg:logo}}%
%{\pgftext[at=\pgfpointxy{2.21}{0.2},right,base]{\pgfuseimage{fg:logo}}}%
\vskip0.45cm%
\begin{beamercolorbox}[wd=12cm,leftskip=3cm, sep= 8pt, #1]{author}
\centering\usebeamerfont{author}\insertauthor%
\end{beamercolorbox}%
\vskip0.2cm%
\begin{beamercolorbox}[wd=12cm,leftskip=3cm,sep=8pt,#1]{date}
\centering\usebeamerfont{author}\insertdate\par%
\end{beamercolorbox}%
\vfill
}
%\mode<all>
\setbeamertemplate{sections/subsections in toc}[square]
\setbeamertemplate{items}[square]
\emc@inner@setdefaults
\ProcessPgfPackageOptions{/emc/inner}
\mode<all>