This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
NWERC2013.sty
executable file
·117 lines (102 loc) · 3.67 KB
/
NWERC2013.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
\ProvidesPackage{NWERC2013-beamer}[2013/11/18]
\definecolor{ICPCBlue}{RGB}{91,119,204}
\definecolor{ICPCRed}{RGB}{160,48,51}
\definecolor{ICPCYellow}{RGB}{252,181,20}
\definecolor{ACMBlue}{RGB}{0,48,94}
\useoutertheme[width=.15\paperwidth]{sidebar}
\setlength{\beamer@headheight}{.185\paperheight}
\setbeamertemplate{sidebar left}{%
\vskip7pt
\insertverticalnavigation{\beamer@\sidebarwidth}%
}
\setbeamertemplate{footline}[text line]{%
\insertshortauthor\strut\hfill\insertshorttitle\hfill\insertshortdate\hspace{1em}\insertframenumber\inserttotalframenumber}
\addtobeamertemplate{title page}{%
\usebemertemplate{title background}%
\vskip .2\paperheight%
}
{}
\newcommand\DoBackground{%
\pgfpathmoveto{\pgfpointorigin}
\pgfpathrectanglecorners{\pgfpoint{0pt}{0pt}}{\pgfpoint{\paperwidth}{-\paperheight}}
\pgfsetfillcolor{White}
\pgfusepath{fill}
\pgftext[at=\pgfpoint{\paperwidth}{-\paperheight},right,base]{\pgfuseimage{large-corner}}
}
\setbeamertemplate{title background}{%
\begin{pgfpicture}
\pgf@relevantforpicturesizefalse
\pfgtransformxshift{-\Gm@lmargin}
\pgftransformyshift{5.5pt}
\doBackground
% Purple short bar on left
\pgfpathrectanglecorners{\pgfpoint{0pt}{-.19\paperheight}}{\pgfpoint{.15\paperwidth}{-.24\paperheight}}
\pgfsetfillcolor{ICPCBlue}
\pgfusepath{fill}
% Followed by orange bar on right
\pgfpathrectanglecorners{\pgfpoint{.15\paperwidth}{-.19\paperheight}}{\pgfpoint{\paperwidth}{-.24\paperheight}}
\pgfsetfillcolor{ICPCRed}
\pgfusepath{fill}
% A stroke down the middle
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.19\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.24\paperheight}}
\pgfsetlinewidth{3.5pt}
\pgfsetinnerlinewidth{1pt}
\pgfsetinnerstrokecolor{ICPCYellow}
\pgfsetrectcap
\pgfsetcolor{white}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.28\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.45\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetinnerlinewidth{0pt}
\pgfsetcolor{ICPCYellow}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.55\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.6\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetcolor{white}
\pgfusepath{stroke}
\pgfpathmoveto{\pgfpoint{.15\paperwidth}{-.9\paperheight}}
\pgfpathlineto{\pgfpoint{.15\paperwidth}{-.93\paperheight}}
\pgfsetlinewidth{1pt}
\pgfsetcolor{white}
\pgfusepath{stroke}
\pgftext[at=\pgfpoint{.16\paperwidth}{-.92\paperheight},left,base]{\tiny 2013.nwerc.eu}
\end{pgfpicture}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Inner Theme
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\useinnertheme{rectangles}
\setbeamertemplate{navigation symbols}{}
\setlength{\leftmargini}{.5em}
\setlength{\leftmarginii}{1.0em}
\setlength{\leftmarginiii}{1.5em}
\setlength{\leftmarginiv}{2.0em}
\setlength{\leftmarginv}{2.5em}
\setlength{\leftmarginvi}{3.0em}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Colours
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usecolortheme[named=ICPCBlue]{structure}
\usecolortheme{rose}
\setbeamercolor{title page}{fg=white}
\setbeamercolor{logo}{bg=White}
\setbeamercolor{frametitle}{fg=ACMBlue,bg=white}
\setbeamercolor{section in sidebar}{fg=ICPCRed}
\setbeamerfont{section in sidebar}{series=\bfseries}
\setbeamercolor{block title}{bg=ICPCYellow!28!white,fg=ACMBlue}
\setbeamercolor{block body}{bg=ICPCYellow!15!white, fg=ACMBlue}
%\newcommand\ThankYouFrame{
% \begin{frame}[plain,t]
% \begin{pgfpicture}
% \pgf@relevantforpicturesizefalse
% \pgftransformxshift{-\Gm@lmargin}
% \pgftransformyshift{5.5pt}
% \DoPurpleBackground
% \pgftext[at=\pgfpoint{.5\paperwidth}{-.5\paperheight},center,center]{\pgfuseimage{white-logo}}
% \pgftext[at=\pgfpoint{.5\paperwidth}{-.3\paperheight},center,center]{\huge\structure{Thank You}}
% \end{pgfpicture}
% \end{frame}
%}