diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:52:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:52:02 +0000 |
commit | b1daf7130666bef14cdb98d88b3c107da38becec (patch) | |
tree | 08f591f90145354f39d714eadee16c99557b7109 /Master/texmf-dist/tex/latex/beamer/beamerbaseoptions.sty | |
parent | 47773c8fa98e5885b1d789b205b39fb924707e6e (diff) |
beamer
git-svn-id: svn://tug.org/texlive/trunk@699 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerbaseoptions.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer/beamerbaseoptions.sty | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbaseoptions.sty b/Master/texmf-dist/tex/latex/beamer/beamerbaseoptions.sty new file mode 100644 index 00000000000..a9e0b326cb3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamer/beamerbaseoptions.sty @@ -0,0 +1,57 @@ +\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/base/beamerbaseoptions.sty,v 1.7 2004/11/15 23:14:13 tantau Exp $ + +% Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>. +% +% This program can be redistributed and/or modified under the terms +% of the GNU Public License, version 2. + +\RequirePackage{keyval}[1997/11/10] + +\def\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@err% + \ifx\@currext\@clsextension\let\KV@errx=\@gobble\fi% never mind + \@tempa% + \let\KV@err\beamer@origkverr% + \AtEndOfPackage{\let\@unprocessedoptions\relax}} + +\def\ExecuteOptionsBeamer#1{% + \setkeys{\@currname}{#1}} + +\def\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 +} + + + +\newcommand\defbeameroption{\define@key{beamer@option}} +\newcommand\setbeameroption{\setkeys{beamer@option}} + + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: "~/texmf/tex/latex/beamer/examples/beamerexample1.tex" +%%% End: |