diff options
Diffstat (limited to 'tex/context/base/core-env.lua')
-rw-r--r-- | tex/context/base/core-env.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tex/context/base/core-env.lua b/tex/context/base/core-env.lua index bc260bc36..694b2f07c 100644 --- a/tex/context/base/core-env.lua +++ b/tex/context/base/core-env.lua @@ -74,6 +74,14 @@ setmetatableindex(tex.ifs, function(t,k) return csname_id(k) ~= undefined and create(k)[2] == iftrue -- inefficient, this create, we need a helper end) +function tex.settrue(name) + texcount[name] = 0 +end + +function tex.setfalse(name) + texcount[name] = 1 +end + ---- arg = P("{") * C(patterns.nested) * P("}") + Cc("") local sep = S("), ") |