-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemeSFUBeamer.sty
114 lines (88 loc) · 2.81 KB
/
beamerthemeSFUBeamer.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
% Theme for OsloMet – Oslo Metropolitan University
%
% Implemented by:
% Nikolai Bjørnestøl Hansen (nikobjo@oslomet.no)
% Martin Helsø (martibhe@math.uio.no)
%
% Version 14-06-2020
%
% Adapted for SFU – Simon Fraser University by
% Javier Almonacid (2023)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[LGR, T1]{fontenc}
\hypersetup{colorlinks,
urlcolor = SFUBlue,
linkcolor =,
citecolor =}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Standard headers:
\DeclareOptionBeamer{american}
{
\def \OMlang {eng}
\def \OMlangII {american}
}
\DeclareOptionBeamer{english}
{
\def \OMlang {eng}
\def \OMlangII {english}
}
\DeclareOptionBeamer{UKenglish}
{
\def \OMlangII {english}\def \OMlang {eng}
\def \OMlangII {UKenglish}
}
\DeclareOptionBeamer{USenglish}
{
\def \OMlang {eng}
\def \OMlangII {USenglish}
}
\DeclareOptionBeamer{norsk}
{
\def \OMlang {bm}
\def \OMlangII {norsk}
\pretolerance = 2000
\tolerance = 6000
\hbadness = 6000
}
\DeclareOptionBeamer{nynorsk}
{
\def \OMlang {nn}
\def \OMlangII {nynorsk}
\pretolerance = 2000
\tolerance = 6000
\hbadness = 6000
}
\urlstyle{same}
%% Vertical text alignment:
\DeclareOptionBeamer{c}{ \beamer@centeredtrue }
\DeclareOptionBeamer{t}{ \beamer@centeredfalse }
%% Theorem numbers, gets sent along to inner theme:
\DeclareOptionBeamer{unnumbered}{\PassOptionsToPackage{unnumbered}{beamerinnerthemeOsloMet}}
\DeclareOptionBeamer{numbered} {\PassOptionsToPackage{numbered}{beamerinnerthemeOsloMet}}
\DeclareOptionBeamer{AMS} {\PassOptionsToPackage{AMS}{beamerinnerthemeOsloMet}}
%% Font, gets sent along to fonttheme:
\DeclareOptionBeamer{SansSerif}{\PassOptionsToPackage{SansSerif}{beamerfontthemeOsloMet}}
\DeclareOptionBeamer{MathSerif}{\PassOptionsToPackage{MathSerif}{beamerfontthemeOsloMet}}
\DeclareOptionBeamer{Serif}{\PassOptionsToPackage{Serif}{beamerfontthemeOsloMet}}
%% Automatic title frame:
\DeclareOptionBeamer{TitlePage}{\PassOptionsToPackage{TitlePage}{beamerinnerthemeOsloMet}}
\DeclareOptionBeamer{NoTitlePage}{\PassOptionsToPackage{NoTitlePage}{beamerinnerthemeOsloMet}}
\ExecuteOptionsBeamer{english}
\ExecuteOptionsBeamer{t}
\ExecuteOptionsBeamer{unnumbered}
\ExecuteOptionsBeamer{SansSerif}
\ExecuteOptionsBeamer{TitlePage}
\ProcessOptionsBeamer
\RequirePackage[\OMlangII]{babel}
%% Allow more stretching
\setlength{\emergencystretch}{3em}
\mode<presentation>
\usefonttheme{SFUBeamer}
\usecolortheme{SFUBeamer}
\useoutertheme{SFUBeamer}
\useinnertheme[\OMlang]{SFUBeamer}
%% Added: Create supervisor and co-supervisor labels
%\newcommand{\supervisor}[1]{\gdef\insertsupervisor{#1}}
%\newcommand{\cosupervisor}[1]{\gdef\insertcosupervisor{#1}}
\mode<all>
\endinput