diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-02-24 17:41:43 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-02-24 17:41:43 +0100 |
commit | b55beadd32489008a75cf46c9eeb22aa20764cc7 (patch) | |
tree | f218b3c60a56af20a76dc01e09c8f95a0bf5ec68 /tex/context/base/mkiv/anch-pos.lua | |
parent | 7b271baae19db1528fbe6621bdf50af89a5a336b (diff) | |
download | context-b55beadd32489008a75cf46c9eeb22aa20764cc7.tar.gz |
2019-02-24 17:31:00
Diffstat (limited to 'tex/context/base/mkiv/anch-pos.lua')
-rw-r--r-- | tex/context/base/mkiv/anch-pos.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/anch-pos.lua b/tex/context/base/mkiv/anch-pos.lua index ade992792..a0d2eee2c 100644 --- a/tex/context/base/mkiv/anch-pos.lua +++ b/tex/context/base/mkiv/anch-pos.lua @@ -401,7 +401,7 @@ end -- use that one instead of a table (so, a 3rd / 4th argument: key, e.g. "x") local function set(name,index,value) -- ,key - local data = enhance(value or index) + local data = enhance(tobesaved[value or index]) if value then container = tobesaved[name] if not container then @@ -420,7 +420,7 @@ local function setspec(specification) local name = specification.name local index = specification.index local value = specification.value - local data = enhance(value or index) + local data = enhance(tobesaved[value or index]) if value then container = tobesaved[name] if not container then @@ -672,6 +672,7 @@ scanners.dosetposition = function() -- name n = nofparagraphs > 0 and nofparagraphs or nil, r2l = texgetcount("inlinelefttoright") == 1 or nil, } + tobesaved[name] = spec ctx_latelua { action = enhance, specification = spec } end @@ -692,6 +693,7 @@ scanners.dosetpositionwhd = function() -- name w h d extra n = nofparagraphs > 0 and nofparagraphs or nil, r2l = texgetcount("inlinelefttoright") == 1 or nil, } + tobesaved[name] = spec ctx_latelua { action = enhance, specification = spec } end @@ -711,6 +713,7 @@ scanners.dosetpositionbox = function() -- name box n = nofparagraphs > 0 and nofparagraphs or nil, r2l = texgetcount("inlinelefttoright") == 1 or nil, } + tobesaved[name] = spec ctx_latelua { action = enhance, specification = spec } end @@ -732,6 +735,7 @@ scanners.dosetpositionplus = function() -- name w h d extra e = scanstring(), r2l = texgetcount("inlinelefttoright") == 1 or nil, } + tobesaved[name] = spec ctx_latelua { action = enhance, specification = spec } end @@ -750,6 +754,7 @@ scanners.dosetpositionstrut = function() -- name n = nofparagraphs > 0 and nofparagraphs or nil, r2l = texgetcount("inlinelefttoright") == 1 or nil, } + tobesaved[name] = spec ctx_latelua { action = enhance, specification = spec } end @@ -770,6 +775,7 @@ scanners.dosetpositionstrutkind = function() -- name n = nofparagraphs > 0 and nofparagraphs or nil, r2l = texgetcount("inlinelefttoright") == 1 or nil, } + tobesaved[name] = spec ctx_latelua { action = enhance, specification = spec } end |