diff options
author | Karl Berry <karl@freefriends.org> | 2008-07-01 01:01:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-07-01 01:01:13 +0000 |
commit | e1848a4a89ee2b1e434745fb3f820583d84bee95 (patch) | |
tree | 1ac3d6c9f1c0928d69b9f1fbdbc101c3ca8e84b9 /Master/texmf-dist/tex/latex/pgfopts/pgfopts.sty | |
parent | 4d4fe569c8fd3aa109b21399493671c6d0002ccf (diff) |
new latex package pgfopts (26jun08)
git-svn-id: svn://tug.org/texlive/trunk@9131 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pgfopts/pgfopts.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/pgfopts/pgfopts.sty | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pgfopts/pgfopts.sty b/Master/texmf-dist/tex/latex/pgfopts/pgfopts.sty new file mode 100644 index 00000000000..54b1af2ad90 --- /dev/null +++ b/Master/texmf-dist/tex/latex/pgfopts/pgfopts.sty @@ -0,0 +1,99 @@ +%% +%% This is file `pgfopts.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% pgfopts.dtx (with options: `package') +%% -------------------------------------------------------------- +%% The pgfopts package --- LaTeX package options with pgfkeys +%% Maintained by Joseph Wright +%% E-mail: joseph.wright@morningstar2.co.uk +%% Released under the LaTeX Project Public License v1.3 or later +%% See http://www.latex-project.org/lppl.txt +%% -------------------------------------------------------------- +%% +\NeedsTeXFormat{LaTeX2e} +\newcommand*{\pgfopts@id}{} +\def\pgfopts@id$#1: #2.#3 #4 #5-#6-#7 #8 #9${% + #5/#6/#7\space v1.0\space} +\ProvidesPackage{pgfopts} + [\pgfopts@id $Id: pgfopts.dtx 28 2008-06-26 11:59:34Z joseph $ + LaTeX package options with pgfkeys] +\RequirePackage{pgfkeys} +\edef\pgfopts@catcodes{% + \catcode\string`\string ` \the\catcode\string`\`\relax + \catcode\string`\string = \the\catcode\string`\=\relax + \catcode\string`\string : \the\catcode\string`\:\relax + \catcode\string`\string , \the\catcode\string`\,\relax + \catcode\string`\string / \the\catcode\string`\/\relax + \catcode\string`\string . \the\catcode\string`\.\relax} +\catcode\string`\` 12\relax +\catcode`\= 12\relax +\@makeother{\:} +\@makeother{\,} +\@makeother{\/} +\@makeother{\.} +\newcommand*{\ProcessPgfOptions}{% + \@ifstar + {\begingroup + \edef\@tempa{% + \endgroup + \noexpand\pgfopts@ProcessOptions + {/\@currname}}% + \@tempa}% + {\pgfopts@ProcessOptions}} +\@onlypreamble\ProcessPgfOptions +\newcommand*{\pgfopts@temp}{} +\newcommand*{\pgfopts@ProcessOptions}[1]{% + \def\pgfopts@temp{,}% + \ifx\@currext\@clsextension\else + \ifx\@classoptionslist\relax\else + \@for\pgfopts@CurrentOption:=\@classoptionslist\do{% + \pgfkeysifdefined{#1/\expandafter\pgfopts@sepkeyval% + \pgfopts@CurrentOption=\@nil/.@cmd} + {\edef\pgfopts@temp{% + \pgfopts@temp\pgfopts@CurrentOption,}% + \@expandtwoargs\@removeelement\pgfopts@CurrentOption + \@unusedoptionlist\@unusedoptionlist}% + {}}% + \fi + \fi + \begingroup + \@ifundefined{opt@\@currname.\@currext} + {\toks@\expandafter{\pgfopts@temp}} + {\toks@\expandafter\expandafter\expandafter{% + \csname opt@\@currname.\@currext\endcsname}% + \ifx\@currext\@clsextension + \edef\@tempa{\the\toks@}% + \toks@\expandafter{\pgfopts@temp}% + \@for\CurrentOption:=\@tempa\do{% + \pgfkeysifdefined{#1/\expandafter% + \pgfopts@sepkeyval\CurrentOption=\@nil/.@cmd} + {\toks@\expandafter{\the\expandafter\toks@ + \expandafter,\CurrentOption}} + {\ifx\@empty\@unusedoptionlist\@empty + \global\let\@unusedoptionlist\CurrentOption + \else + \expandafter\expandafter\expandafter\gdef + \expandafter\expandafter\expandafter + \@unusedoptionlist\expandafter\expandafter + \expandafter{% + \expandafter\@unusedoptionlist + \expandafter,\CurrentOption}% + \fi}}% + \else + \toks@\expandafter\expandafter\expandafter{% + \expandafter\pgfopts@temp\the\toks@}% + \fi}% + \edef\pgfopts@temp{\endgroup + \noexpand\pgfkeys{#1/.cd,\the\toks@}}% + \pgfopts@temp + \let\CurrentOption\@empty + \AtEndOfPackage{\let\@unprocessedoptions\relax}} +\newcommand*{\pgfopts@sepkeyval}{} +\def\pgfopts@sepkeyval#1=#2\@nil{#1} +\pgfopts@catcodes +\endinput +%% +%% End of file `pgfopts.sty'. |