diff options
author | Karl Berry <karl@freefriends.org> | 2006-09-20 20:15:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-09-20 20:15:47 +0000 |
commit | b927724b1d2d9dde0af151e16b0643f0109f6100 (patch) | |
tree | b51ab484ed65843bd1a24463ed9d971cc87712a0 /Master/texmf-dist/tex/latex/forloop | |
parent | 6a6d5f181aa8135830479076d5d8ecec404c9241 (diff) |
forloop update (20sep06)
git-svn-id: svn://tug.org/texlive/trunk@2170 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/forloop')
-rw-r--r-- | Master/texmf-dist/tex/latex/forloop/forloop.sty | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/forloop/forloop.sty b/Master/texmf-dist/tex/latex/forloop/forloop.sty index 724aa3cffe7..fec750838a1 100644 --- a/Master/texmf-dist/tex/latex/forloop/forloop.sty +++ b/Master/texmf-dist/tex/latex/forloop/forloop.sty @@ -13,7 +13,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{forloop} - [2006/09/17 v1.0 For Loops for LaTeX] + [2006/09/18 v3.0 For Loops for LaTeX] \RequirePackage{ifthen} %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -30,19 +30,17 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\newcommand{\forloop}[4][1]% +\newcommand{\forloop}[5][1]% {% -\forloop@split#2\%% -\setcounter{\forloop@ct@name}{\forloop@ct@initialvalue}% -\whiledo{ #3 }% +\setcounter{#2}{#3}% +\ifthenelse{#4}% {% -#4% -\addtocounter{\forloop@ct@name}{#1}% +#5% +\addtocounter{#2}{#1}% +\forloop[#1]{#2}{\value{#2}}{#4}{#5}% }% +{% }% -\def\forloop@split#1=#2\%{% -\gdef\forloop@ct@name{#1}% -\gdef\forloop@ct@initialvalue{#2}% }% \newcommand{\forLoop}[5][1] {% |