diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/sauerj/optparams.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/sauerj/optparams.sty | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/sauerj/optparams.sty b/Master/texmf-dist/tex/latex/sauerj/optparams.sty new file mode 100644 index 00000000000..bf8ee0aad8a --- /dev/null +++ b/Master/texmf-dist/tex/latex/sauerj/optparams.sty @@ -0,0 +1,27 @@ +%% +%% This is file `optparams.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% optparams.dtx (with options: `package') +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{optparams} + [2004/08/14 v0.9 multiple optional parameters in macros] +\newcommand{\optparams}[2]{% +\optparams@{#1}{}{#2}% +} +\def\optparams@#1#2#3{% +\@ifnextchar[{% +\optparams@@{#1}{#2}#3\@nil% +}{% +#1#2#3% +}% +} +\def\optparams@@#1#2[#3]#4\@nil[#5]{% +\optparams@{#1}{#2[#5]}{#4}% +} +\endinput +%% +%% End of file `optparams.sty'. |