From 0e41a49f208f79c08d67dd315eefc1e118b1ab45 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 20 Aug 2012 22:38:02 +0000 Subject: new example set presentations-en (20aug12) git-svn-id: svn://tug.org/texlive/trunk@27471 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/presentations-en/DEoptions.sty | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/presentations-en/DEoptions.sty (limited to 'Master/texmf-dist/doc/latex/presentations-en/DEoptions.sty') diff --git a/Master/texmf-dist/doc/latex/presentations-en/DEoptions.sty b/Master/texmf-dist/doc/latex/presentations-en/DEoptions.sty new file mode 100644 index 00000000000..d625f6c5ef5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/presentations-en/DEoptions.sty @@ -0,0 +1,51 @@ +% $Id: DEoptions.sty 574 2011-09-05 08:17:17Z herbert $ +% Copyright 2011 by Herbert Voss +% +% 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] + +\def\ProcessOptionsExa{% + \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\exa@origkverr\KV@err% + \ifx\@currext\@clsextension\let\KV@errx=\@gobble\fi% never mind + \@tempa% + \let\KV@err\exa@origkverr% + \AtEndOfPackage{\let\@unprocessedoptions\relax}} + +\def\ExecuteOptionsExa#1{\setkeys{\@currname}{#1}} +\def\DeclareOptionExa#1{\@ifnextchar[{\exa@dokv{#1}}{\exa@dokv{#1}[]}} +\long\def\exa@dokv#1[#2]#3{\define@key{\@currname}{#1}[{#2}]{#3}} + +\def\exa@filterclassoptions{% + \def\exa@filteredclassoptionslist{} + \@for\CurrentOption:=\@classoptionslist\do{% + \ifx\CurrentOption\@empty\else + \@expandtwoargs\in@{=}{\CurrentOption}% + \ifin@ + \else + \edef\exa@filteredclassoptionslist{% + \exa@filteredclassoptionslist,\CurrentOption} + \fi + \fi + }% + \let\@classoptionslist=\exa@filteredclassoptionslist% +} + +\newcommand\defexaoption{\define@key{exa@option}} +\newcommand\setexaoption{\setkeys{exa@option}} + +\endinput \ No newline at end of file -- cgit v1.2.3