summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sauerj/optparams.sty
blob: bf8ee0aad8adf8f2668cf42bba748d88d54a37cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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'.