summaryrefslogtreecommitdiff
path: root/tex/context/base/node-tra.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-02-20 22:00:14 +0200
committerMarius <mariausol@gmail.com>2011-02-20 22:00:14 +0200
commit3880c6aa8cef3b379b06777c09f9ce3e7e61f493 (patch)
treebcde92b4216855c15fbd77700423f5cb919c05c9 /tex/context/base/node-tra.lua
parent21179ddb493e5c3355211e090959036cc048366b (diff)
downloadcontext-3880c6aa8cef3b379b06777c09f9ce3e7e61f493.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.lua8
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