%% %% 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'.