diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-05-25 11:48:47 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-05-25 11:48:47 +0200 |
commit | 8b678f473da7b81842dbc13b50c6303991570521 (patch) | |
tree | 53bc0e1c76c99a32011118c8941bab7b6e9b91df /tex/context/base/mkiv/anch-pos.lua | |
parent | caee9d5ac3c65f78671a9786318358cd647247eb (diff) | |
download | context-8b678f473da7b81842dbc13b50c6303991570521.tar.gz |
2019-05-25 10:53:00
Diffstat (limited to 'tex/context/base/mkiv/anch-pos.lua')
-rw-r--r-- | tex/context/base/mkiv/anch-pos.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/anch-pos.lua b/tex/context/base/mkiv/anch-pos.lua index 56250e16d..e53c3c514 100644 --- a/tex/context/base/mkiv/anch-pos.lua +++ b/tex/context/base/mkiv/anch-pos.lua @@ -54,8 +54,6 @@ local texget = tex.get local texsp = tex.sp ----- texsp = string.todimen -- because we cache this is much faster but no rounding -local pdf = pdf -- h and v are variables - local setmetatableindex = table.setmetatableindex local setmetatablenewindex = table.setmetatablenewindex @@ -1449,3 +1447,12 @@ statistics.register("positions", function() return nil end end) + +-- We support the low level positional commands too: + +local newsavepos = nodes.pool.savepos +local implement = interfaces.implement + +implement { name = "savepos", actions = function() context(newsavepos()) end } +implement { name = "lastxpos", actions = function() context(gethpos()) end } +implement { name = "lastypos", actions = function() context(getvpos()) end } |