diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-09-26 17:35:54 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-09-26 17:35:54 +0200 |
commit | 2073fe5d88215dddd9a9e6421afaea7ab7db955a (patch) | |
tree | d0a65846502c24c5951f03f6018c15125a532fa5 /tex/context/base/mkxl/node-ini.lmt | |
parent | d5e2ac5f857f2a003949fce54ed41eedc4fb9475 (diff) | |
download | context-2073fe5d88215dddd9a9e6421afaea7ab7db955a.tar.gz |
2021-09-26 16:50:00
Diffstat (limited to 'tex/context/base/mkxl/node-ini.lmt')
-rw-r--r-- | tex/context/base/mkxl/node-ini.lmt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/node-ini.lmt b/tex/context/base/mkxl/node-ini.lmt index a0c447954..06e36147c 100644 --- a/tex/context/base/mkxl/node-ini.lmt +++ b/tex/context/base/mkxl/node-ini.lmt @@ -34,9 +34,19 @@ local getvalues = node.values tex.magicconstants = { -- we use tex.constants for something else running = -1073741824, -- null_flag maxdimen = 1073741823, -- max_dimen - trueinch = 4736286, + -- trueinch = 4736286, -- obsolete } +do + local c = status.getconstants() + local t = { } + for k, v in next, c do + t[gsub(k,"_","")] = v + end + + tex.magicconstants = table.setmetatableindex(t,c) +end + local listcodes = mark(getsubtypes("list")) local rulecodes = mark(getsubtypes("rule")) local dircodes = mark(getsubtypes("dir")) |