diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-10-18 22:09:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-10-18 22:09:00 +0200 |
commit | 44113dd5530d4653fe335ad13ccf80fb8882d5e7 (patch) | |
tree | 2dfe46b28a0da50749b7a162783f7270153431af /tex/context/base/node-tra.lua | |
parent | 3c50b29fa3fe5ec86e20e0812485067fa5b7eeb2 (diff) | |
download | context-44113dd5530d4653fe335ad13ccf80fb8882d5e7.tar.gz |
beta 2011.10.18 22:09
Diffstat (limited to 'tex/context/base/node-tra.lua')
-rw-r--r-- | tex/context/base/node-tra.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tex/context/base/node-tra.lua b/tex/context/base/node-tra.lua index 3b5b1d018..706b2fc10 100644 --- a/tex/context/base/node-tra.lua +++ b/tex/context/base/node-tra.lua @@ -666,9 +666,18 @@ local pts = function(n) end end +local nopts = function(n) + if not n or n == 0 then + return "0" + else + return format("%.5f",n*ptfactor) + end +end + number.points = points number.basepoints = basepoints number.pts = pts +number.nopts = nopts --~ function nodes.thespec(s) --~ local stretch_order = s.stretch_order |