diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-07-13 00:15:03 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-07-13 00:15:03 +0200 |
commit | bf1392944a85a42b673d812126ad95f5c9a20266 (patch) | |
tree | 4fa7192b72f45d8cead18f667ee937c670726913 /tex/context/base/math-noa.lua | |
parent | bd0ef6b1b32b7a6bb313ad7619c35da45cb4ede3 (diff) | |
download | context-bf1392944a85a42b673d812126ad95f5c9a20266.tar.gz |
2015-07-12 23:32:00
Diffstat (limited to 'tex/context/base/math-noa.lua')
-rw-r--r-- | tex/context/base/math-noa.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tex/context/base/math-noa.lua b/tex/context/base/math-noa.lua index 2275497e8..09188a4fd 100644 --- a/tex/context/base/math-noa.lua +++ b/tex/context/base/math-noa.lua @@ -605,17 +605,17 @@ end -- todo: just replace the character by an ord noad -- and remove the right delimiter as well -local mathsize = privateattribute("mathsize") -- this might move into other fence code - -local resize = { } processors.resize = resize +local a_mathsize = privateattribute("mathsize") -- this might move into other fence code +local resize = { } +processors.resize = resize resize[math_fence] = function(pointer) local subtype = getsubtype(pointer) if subtype == left_fence_code or subtype == right_fence_code then - local a = getattr(pointer,mathsize) + local a = getattr(pointer,a_mathsize) if a and a > 0 then local method, size = div(a,100), a % 100 - setattr(pointer,mathsize,0) + setattr(pointer,a_mathsize,0) local delimiter = getfield(pointer,"delim") local chr = getfield(delimiter,"small_char") if chr > 0 then @@ -634,9 +634,9 @@ function handlers.resize(head,style,penalties) return true end - -local a_autofence = privateattribute("mathautofence") -local autofences = { } +local a_autofence = privateattribute("mathautofence") +local autofences = { } +processors.autofences = autofences local function makefence(what,char) local d = new_node(math_delim) |