diff options
author | Karl Berry <karl@freefriends.org> | 2021-08-26 21:26:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-08-26 21:26:41 +0000 |
commit | c2c9833536fa0937fe30f59d2d1f162585eb9e9d (patch) | |
tree | dbac1027a6434601083573a8a0f83236159296a5 /Master/texmf-dist/tex/optex/base/if-macros.opm | |
parent | 326afd428d5323af5cfcf8b7ba131ed688002850 (diff) |
optex (26aug21)
git-svn-id: svn://tug.org/texlive/trunk@60332 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/optex/base/if-macros.opm')
-rw-r--r-- | Master/texmf-dist/tex/optex/base/if-macros.opm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/optex/base/if-macros.opm b/Master/texmf-dist/tex/optex/base/if-macros.opm index 462e4960172..6c6318b8415 100644 --- a/Master/texmf-dist/tex/optex/base/if-macros.opm +++ b/Master/texmf-dist/tex/optex/base/if-macros.opm @@ -1,6 +1,6 @@ %% This is part of the OpTeX project, see http://petr.olsak.net/optex -\_codedecl \newif {Special if-macros, is-macros and loops <2021-02-03>} % preloaded in format +\_codedecl \newif {Special if-macros, is-macros and loops <2021-08-02>} % preloaded in format \_doc ---------------------------- \secc Classical \code{\\newif} @@ -118,9 +118,9 @@ \_ea\_fornumB\_ea{\_the\_numexpr#3\_ea}\_ea{\_the\_numexpr#1}% } \_def\_fornumB #1#2{\_ifnum#1\_ifnum#2>0<\_else>\_fi \_frnum \_getforstack - \_else \_ea\_fbody\_ea{\_the\_frnum}% + \_else \_afterfi{\_ea\_fbody\_ea{\_the\_frnum}% \_immediateassignment\_global\_advance\_frnum by#2 - \_afterfi{\_fornumB{#1}{#2}}\_fi + \_fornumB{#1}{#2}}\_fi } \_def\fornum#1..#2\do{\_fornumstep 1:#1..#2\_do} \_def\fornumstep#1:#2..#3\do{\_fornumstep #1:#2..#3\_do} @@ -304,6 +304,7 @@ \_endcode +2021-08-02 more robust \fornum: \fi moved by \afterfi 2021-02-03 public version of \loop and \foreach are \long 2020-05-22 \foreach, \fornum: all settings are global, independent on TeX group 2020-05-06 \isnextchar: \let\tmp=#1 -> \let\tmp= #1 (bug fix, #1 should be space) |