-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemedcachegreen.sty
154 lines (121 loc) · 3.93 KB
/
beamerthemedcachegreen.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
\mode<presentation>
%%%%%%%%%%%%%%
%%
%% Package requirements
%%
%%%%%%%%%%%%%%
% Text encoding
\usepackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[english]{babel}
\RequirePackage{verbatim}
\RequirePackage{textcomp}
\RequirePackage[absolute,overlay]{textpos}
\RequirePackage{listings}
\RequirePackage{ifthen}
% Font encoding
\RequirePackage{fontspec}
% Color encoding
\RequirePackage{xcolor}
% Tikz
\RequirePackage{tikz}
\usetikzlibrary{positioning,arrows,decorations.pathmorphing}
%%%%%%%%%%%%%%
%%
%% Color theme
%%
%%%%%%%%%%%%%%
% color definitions
\definecolor{dcachedarkblue}{HTML}{003172}
\definecolor{dcacheblue}{HTML}{0073bd}
\definecolor{dcachepink}{HTML}{c7254e}
\definecolor{helmholtzgreenlight}{HTML}{80cd33}
\definecolor{helmholtzgreen}{HTML}{7DA647}
\setbeamercolor{title}{fg = helmholtzgreen}
\setbeamercolor{frametitle}{fg = helmholtzgreen}
\setbeamercolor{normal text}{fg = dcacheblue, bg = white}
\setbeamercolor{item}{fg = dcacheblue}
\setbeamercolor{subitem}{fg = dcacheblue}
\setbeamercolor{subsubitem}{fg = dcacheblue}
\setbeamercolor{caption}{fg = dcacheblue}
\setbeamercolor{caption name}{fg = dcacheblue}
\setbeamercolor{structure}{fg = dcacheblue}
%%%%%%%%%%%%%%
%%
%% Font theme
%%
%%%%%%%%%%%%%%
% URW Gothic L sometimes not available; use URW Gothic Demi or Liberation Serif instead
\setmainfont{Liberation Serif}
\setbeamerfont{frametitle}{size=\large, series=\bfseries}
%%%%%%%%%%%%%%
%%
%% Inner theme
%%
%%%%%%%%%%%%%%
\setbeamertemplate{itemize items}[circle] % alternative: square
%\setbeamertemplate{enumerate items}[default]
%%%%%%%%%%%%%%
%%
%% Outer theme
%%
%%%%%%%%%%%%%%
\setbeamertemplate{navigation symbols}{}
% General commands
\newcommand{\MainTitle}[1]{\textbf{\large\color{helmholtzgreen} #1}}
\newcommand{\MainSubTitleAndAuthor}[2]{\small\textbf{#1}\\ {#2} for the dCache Collaboration}
\newcommand{\MainSubTitle}[1]{\small\textbf{#1}\\}
\newcommand{\NameAndAffiliation}[2]{{#1}, {#2}}
\newcommand{\Code}[1]{\texttt{\color{gray}\footnotesize #1}}
\newcommand{\Highlight}[1]{\textbf{\color{dcachepink}#1}}
% Logo dCache in the top right corner
\newcommand{\DcacheLogo}{%
\ifthenelse{\lengthtest{\beamer@paperwidth=16cm}}% condition (16cm is the width of the frame with an aspect ratio = 16:9)
{
\raisebox{-15mm}[0pt][0pt]{%
\begin{pgfpicture}{-90mm}{0mm}{0mm}{0mm}
\includegraphics[height=1.5cm,keepaspectratio=true]{img/dcache-banner.png}
\end{pgfpicture} }
}% do this if condition is true (ratio 16:9)
{
\raisebox{-15mm}[0pt][0pt]{%
\begin{pgfpicture}{-68mm}{0mm}{0mm}{0mm}
\includegraphics[height=1.3cm,keepaspectratio=true]{img/dcache-banner.png}
\end{pgfpicture} }
}% do this elsewhere (ratio 4:3)
}
\setbeamertemplate{headline}{\DcacheLogo}
% Footline layout
\newcommand{\TextInFootline}{
\vspace{-4mm}
\color{helmholtzgreen}\fontsize{7pt}{7.2}\selectfont
\hfill\textbf{\inserttitle} | {\insertauthor} | \insertframenumber}
\newcommand{\Footline}{
\raisebox{-2mm}[0pt][0pt]{
\begin{tikzpicture}[]
\draw[line width=0.35mm,helmholtzgreen] (0,-1) -- ++ (16,0);
\end{tikzpicture}
}
\vspace{4mm}
\begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex]{title in head/foot}
\hspace*{4mm} \TextInFootline \hspace{4mm}
\end{beamercolorbox}
}
\newcommand{\EmptyFootline}{
\begin{tikzpicture}[]
\draw[line width=0.35mm,helmholtzgreen] (0,-1) -- ++ (16,0);
\end{tikzpicture}
\vspace{5mm}
}
\setbeamertemplate{footline}{\Footline}
% Logo group
\newcommand{\LogoGroup}{
\begin{tikzpicture}
\node at (0,0) (desy) {\includegraphics[height=1.2cm,keepaspectratio=true]{img/logo-desy}};
\node [right=0mm of desy] (fermilab) {\includegraphics[height=1.1cm,keepaspectratio=true]{img/logo-fermilab}};
\node [right=-2mm of fermilab] (neic) {\includegraphics[height=0.7cm,keepaspectratio=true]{img/logo-neic}};
\node [below right=-4mm and -16mm of desy] (helmholtz) {\includegraphics[height=1cm,keepaspectratio=true]{img/logo-helmholtz}};
\end{tikzpicture}
}
\mode
<all>