diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/syst-ext.tex')
-rw-r--r-- | Master/texmf-dist/tex/context/base/syst-ext.tex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/syst-ext.tex b/Master/texmf-dist/tex/context/base/syst-ext.tex index 262d5f0b0df..bee6049bf24 100644 --- a/Master/texmf-dist/tex/context/base/syst-ext.tex +++ b/Master/texmf-dist/tex/context/base/syst-ext.tex @@ -2521,6 +2521,12 @@ {\scratchcounter#2% \setxvalue{#1}{\the\scratchcounter}} +\def\incrementcounter#1#2% #1 name #2 value + {\setxvalue{#1}{\the\numexpr\csname#1\endcsname+#2\relax}} + +\def\decrementcounter#1#2% #1 name #2 value + {\setxvalue{#1}{\the\numexpr\csname#1\endcsname-#2\relax}} + %D \macros %D {savecounter,restorecounter} %D |