summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/multenum
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:59:53 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:59:53 +0000
commit971e92d9687339477a3c91290351359eb4dfa309 (patch)
tree973541a8cb2f5402a524a4f74d97540990381ded /Master/texmf-dist/tex/latex/multenum
parenta88f19e1a18be7ee64e4c7e1398c3867cb9c27f3 (diff)
multenum
git-svn-id: svn://tug.org/texlive/trunk@1114 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/multenum')
-rw-r--r--Master/texmf-dist/tex/latex/multenum/multienum.sty195
1 files changed, 195 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/multenum/multienum.sty b/Master/texmf-dist/tex/latex/multenum/multienum.sty
new file mode 100644
index 00000000000..4ff57bf1cd1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/multenum/multienum.sty
@@ -0,0 +1,195 @@
+%%This is package multienum.sty
+%%Dennis Kletzing
+%%Stetson University
+%%kletzing@totcon.com
+
+\setlength{\hsize}{\textwidth}
+
+\newlength{\usedx}
+\newlength{\remainx}
+\newlength{\usedxx}
+\newlength{\remainxx}
+\newlength{\usedxxx}
+\newlength{\remainxxx}
+\newlength{\usedxxxx}
+\newlength{\remainxxxx}
+\newlength{\remainxox}
+\newlength{\remainxoxx}
+\newlength{\remainxxxxx}
+\newlength{\usedxxxxx}
+
+\newcommand{\labelname}{\csname
+labelenum\romannumeral\themultienumdepth\endcsname}
+
+\newcommand{\itemx}[1]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
+\parbox[t]{\remainx}{\raggedright #1}\par}%\smallskip
+
+\newcommand{\itemxx}[2]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.5\remainxx}{\raggedright #1}\hfill\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.5\remainxx}{\raggedright #2}\smallskip}
+
+\newcommand{\itemxxx}[3]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
+\parbox[t]{.3333\remainxxx}{\raggedright #1}\hfill\parbox[t]%
+{\labelwidth}{\hfill {\labelname}}\hskip\labelsep%
+\parbox[t]{0.3333\remainxxx}{\raggedright #2}\hfill\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
+\parbox[t]{0.3333\remainxxx}{\raggedright #3}\par}%\smallskip
+
+\newcommand{\itemxxxx}[4]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.25\remainxxxx}{\raggedright #1}\hfill\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\raggedright #3}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\raggedright #4}\smallskip}
+
+
+\newcommand{\itemxxxxx}[5]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\raggedright #3}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\raggedright #4}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\raggedright #5}\smallskip}
+
+
+\newcommand{\itemxox}[2]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxox}{\raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.3333\remainxxx}{\raggedright #2}\smallskip}
+
+\newcommand{\itemxxo}[2]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.3333\remainxxx}{\raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxox}{\raggedright #2}\smallskip}
+
+\newcommand{\itemxoxx}[3]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxoxx}{\raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\raggedright #3}\smallskip}
+
+\newcommand{\itemxxox}[3]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.25\remainxxxx}{\raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxoxx}{\raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\raggedright #3}\smallskip}
+
+\newcommand{\itemxxxo}[3]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.25\remainxxxx}{\raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.25\remainxxxx}{\raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxoxx}{\raggedright #3}\smallskip}
+
+
+\newcommand{\oddlisti}{\setcounter{multienumi}{-1}\renewcommand{\labelenumi}
+{\ifodd\value{multienumi}\addtocounter{multienumi}{2}\themultienumi.\else
+\addtocounter{multienumi}{1}\themultienumi.\addtocounter{multienumi}{-2}\fi}}
+
+
+\newcommand{\evenlisti}{\setcounter{multienumi}{0}
+\renewcommand{\labelenumi}
+{\ifodd\value{multienumi}\addtocounter{multienumi}{1}\themultienumi.\addtocounte
+r{multienumi}{-2}\else
+\addtocounter{multienumi}{2}\themultienumi.\fi}}
+
+
+\newcommand{\regularlisti}{\setcounter{multienumi}{0}%
+\renewcommand{\labelenumi}
+{\addtocounter{multienumi}{1}\arabic{multienumi}.}}
+
+\newcommand{\regularlistii}{\setcounter{multienumii}{0}%
+\renewcommand{\labelenumii}
+{\addtocounter{multienumii}{1}(\alph{multienumii})}}%\alph{multienumii}.
+
+\newcommand{\regularlistiii}{\setcounter{multienumiii}{0}%
+\renewcommand{\labelenumiii}
+{\addtocounter{multienumiii}{1}\alph{multienumiii}.}}
+
+\newcommand{\mitemx}[1]{\item[] \itemx{#1}}
+\newcommand{\mitemxx}[2]{\item[] \itemxx{#1}{#2}}
+\newcommand{\mitemxxx}[3]{\item[] \itemxxx{#1}{#2}{#3}}
+\newcommand{\mitemxox}[2]{\item[] \itemxox{#1}{#2}}
+\newcommand{\mitemxxo}[2]{\item[] \itemxxo{#1}{#2}}
+\newcommand{\mitemxxxx}[4]{\item[] \itemxxxx{#1}{#2}{#3}{#4}}
+\newcommand{\mitemxoxx}[3]{\item[] \itemxoxx{#1}{#2}{#3}}
+\newcommand{\mitemxxox}[3]{\item[] \itemxxox{#1}{#2}{#3}}
+\newcommand{\mitemxxxo}[3]{\item[] \itemxxxo{#1}{#2}{#3}}
+\newcommand{\mitemxxoo}[2]{\item[] \itemxxoo{#1}{#2}}
+\newcommand{\mitemxxxxx}[5]{\item[] \itemxxxxx{#1}{#2}{#3}{#4}{#5}}
+
+\newcounter{multienumdepth}
+\setcounter{multienumdepth}{0}
+
+\newcounter{multienum}
+\newcounter{multienumi}
+\newcounter{multienumii}
+\newcounter{multienumiii}
+\newcounter{multienumiv}
+
+\newcommand{\listtype}[1]{#1}
+
+\newenvironment{multienumerate}[1][regularlist]{%
+\ifnum \themultienumdepth >3 \@toodeep\else%
+ \addtocounter{multienumdepth}{1}%
+ \edef\@multienumctr{multienum\romannumeral\themultienumdepth}%
+ {\csname label\@multienumctr\endcsname}{\usecounter%
+ {\@multienumctr}}%
+\listtype{\csname #1\romannumeral\themultienumdepth\endcsname}\fi%
+\begin{list}{}{%
+\ifnum\themultienumdepth=2 \setlength{\leftmargin}{25pt}\else %was 23pt
+\setlength{\leftmargin}{0pt} \fi% was 0pt
+\setlength{\labelwidth}{20pt}\setlength{\labelsep}{5pt}%was18pt
+\setlength{\usedx}{\labelwidth}%
+\addtolength{\usedx}{\labelsep}%
+\addtolength{\usedx}{\leftmargin}%
+\setlength{\remainx}{\hsize}%
+\addtolength{\remainx}{-\usedx}%
+\setlength{\usedxx}{2\labelwidth}%
+\addtolength{\usedxx}{2\labelsep}%
+\addtolength{\usedxx}{\leftmargin}%
+\setlength{\remainxx}{\hsize}%
+\addtolength{\remainxx}{-\usedxx}%
+\setlength{\usedxxx}{3\labelwidth}%
+\addtolength{\usedxxx}{3\labelsep}%
+\addtolength{\usedxxx}{\leftmargin}%
+\setlength{\remainxxx}{\hsize}%
+\addtolength{\remainxxx}{-\usedxxx}%
+\setlength{\usedxxxx}{4\labelwidth}%
+\addtolength{\usedxxxx}{4\labelsep}%
+\addtolength{\usedxxxx}{\leftmargin}%
+\setlength{\remainxxxx}{\hsize}%
+\addtolength{\remainxxxx}{-\usedxxxx}%
+\setlength{\remainxox}{.666\remainxxx}%
+\addtolength{\remainxox}{\labelwidth}%
+\addtolength{\remainxox}{\labelsep}%
+\setlength{\remainxoxx}{.5\remainxxxx}%
+\addtolength{\remainxoxx}{\labelwidth}%
+\addtolength{\remainxoxx}{\labelsep}%
+\setlength{\usedxxxxx}{5\labelwidth}%
+\addtolength{\usedxxxxx}{5\labelsep}%
+\addtolength{\usedxxxxx}{\leftmargin}%
+\setlength{\remainxxxxx}{\hsize}%
+\addtolength{\remainxxxxx}{-\usedxxxxx}%
+\setlength{\itemindent}{0pt}}}{\addtocounter{multienumdepth}{-1}\end{list}}
+
+
+