blob: c69564b681edbd46bc6dbef1c156b928ba64f1bb (
plain)
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
|
% Copyright 2003--2007 by Till Tantau
% Copyright 2010 by Vedran Mileti\'c
% Copyright 2013,2015 by Vedran Mileti\'c, Joseph Wright
% Copyright 2017 by Joseph Wright
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\RequirePackage{keyval}[1997/11/10]
\newrobustcmd*\ProcessOptionsBeamer{%
\let\@tempa\@empty
\ifx\@currext\@clsextension
\else
\@for\CurrentOption:=\@classoptionslist\do{%
\@ifundefined{KV@\@currname @\CurrentOption}%
{}{\edef\@tempa{\@tempa,\CurrentOption,}}}%
\fi
\edef\@tempa{%
\noexpand\setkeys{\@currname}{\@tempa\@ptionlist{\@currname.\@currext}}}%
\let\beamer@origkverr\KV@errx
\let\beamer@origxkverr\XKV@err
\let\KV@errx=\@gobble% never mind
\let\XKV@err=\@gobble% never mind
\@tempa
\let\KV@errx\beamer@origkverr
\let\XKV@err\beamer@origxkverr
\AtEndOfPackage{\let\@unprocessedoptions\relax}}
\newrobustcmd\ExecuteOptionsBeamer[1]{%
\setkeys{\@currname}{#1}}
\newrobustcmd\DeclareOptionBeamer[1]{\@ifnextchar[{\beamer@dokv{#1}}{\beamer@dokv{#1}[]}}
\long\def\beamer@dokv#1[#2]#3{\define@key{\@currname}{#1}[{#2}]{#3}}
\def\beamer@filterclassoptions{%
\def\beamer@filteredclassoptionslist{}%
\@for\CurrentOption:=\@classoptionslist\do{%
\ifx\CurrentOption\@empty\else
\@expandtwoargs\in@{=}{\CurrentOption}%
\ifin@
\else
\edef\beamer@filteredclassoptionslist{%
\beamer@filteredclassoptionslist,\CurrentOption}%
\fi
\fi
}%
\let\@classoptionslist=\beamer@filteredclassoptionslist
}
\newrobustcmd*\defbeameroption{\define@key{beamer@option}}
\newrobustcmd*\setbeameroption{\setkeys{beamer@option}}
|