diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-02-20 20:34:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-02-20 20:34:00 +0100 |
commit | 15ee46403d36de6f29b4e45171e061708ec69193 (patch) | |
tree | d067341bae6f8f10633bc71c1f91a85ea94ca33c /tex/context/base/node-tra.lua | |
parent | 18e7114e3c95f724407c6698181e6f1002ad589b (diff) | |
download | context-15ee46403d36de6f29b4e45171e061708ec69193.tar.gz |
beta 2011.02.20 20:34
Diffstat (limited to 'tex/context/base/node-tra.lua')
-rw-r--r-- | tex/context/base/node-tra.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tex/context/base/node-tra.lua b/tex/context/base/node-tra.lua index 96a9c7005..8b393df48 100644 --- a/tex/context/base/node-tra.lua +++ b/tex/context/base/node-tra.lua @@ -648,3 +648,11 @@ local points = function(n) end number.points = points + +--~ function nodes.thespec(s) +--~ local stretch_order = s.stretch_order +--~ local shrink_order = s.shrink_order +--~ local stretch_unit = (stretch_order ~= 0) and ("fi".. string.rep("l",stretch_order)) or "sp" +--~ local shrink_unit = (shrink_order ~= 0) and ("fi".. string.rep("l",shrink_order)) or "sp" +--~ return string.format("%ssp+ %ssp - %ssp",s.width,s.stretch,stretch_unit,s.shrink,shrink_unit) +--~ end |