-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemeSURFsara.sty
44 lines (39 loc) · 1.12 KB
/
beamerthemeSURFsara.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemeSURFsara}[2018/06/07 v0.9 SURFsara Beamer theme]
\RequirePackage{xstring}
\RequirePackage{pgfopts}
\pgfkeys{
/surf/.cd,
variant/.is choice,
variant/surf/.code={
\wlog{beamerthemeSURFsara: selected surf variant.}
\def\surf@variant{surf}
},
variant/surfsara/.code={
\wlog{beamerthemeSURFsara: selected surfsara variant (default)}
\def\surf@variant{surfsara}
},
variant=surf,
variant/.unknown/.code=
\PackageWarning{beamerSURFsara}
{unknown variant value}
{surf and surfsara are only accepted as value}
}
\ProcessPgfOptions{/surf}
% location command
\def\location{\@dblarg\beamer@location}
\long\def\beamer@location[#1]#2{%
\def\beamer@temp{#2}%
\ifx\beamer@temp\@empty
\def\insertlocation{}
\else
\def\insertlocation{\def\inst{\beamer@instinst}\def\and{\beamer@andinst}#2}%
\fi
\def\beamer@shortlocation{#1}
\def\SURFsara@beamer@insertlocation{#2}}
\location{}
% end of location command
\usecolortheme{SURFsara}
\usefonttheme{SURFsara}
\useoutertheme{SURFsara}
\useinnertheme{SURFsara}