-
Notifications
You must be signed in to change notification settings - Fork 5
/
beamerthemeNXYZ.sty
49 lines (40 loc) · 991 Bytes
/
beamerthemeNXYZ.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
\mode<presentation>
% Determine color settings
\newif\if@colorOptionBlack
\@colorOptionBlackfalse
\DeclareOption{black}{\@colorOptionBlacktrue}
\newif\if@colorOptionBlue
\@colorOptionBluefalse
\DeclareOption{blue}{\@colorOptionBluetrue}
\newif\if@colorOptionGreen
\@colorOptionGreenfalse
\DeclareOption{green}{\@colorOptionGreentrue}
\newif\if@colorOptionRed
\@colorOptionRedfalse
\DeclareOption{red}{\@colorOptionRedtrue}
% Set the default color option to 'red'
\ExecuteOptions{red}
% Process options...
\ProcessOptions\relax
\if@colorOptionBlack
\usecolortheme{BlackNXYZ}
\else
\if@colorOptionBlue
\usecolortheme{BlueNXYZ}
\else
\if@colorOptionGreen
\usecolortheme{GreenNXYZ}
\else
\if@colorOptionRed
\usecolortheme{RedNXYZ}
\fi
\fi
\fi
\fi
% Requirements
\RequirePackage{tikz}
\RequirePackage{pgfplots}
% Elements and settings
\useinnertheme{NXYZ}
\useoutertheme{NXYZ}
\mode<all>