diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2010-05-24 14:05:02 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2010-05-24 14:05:02 +0000 |
commit | 57ea7dad48fbf2541c04e434c31bde655ada3ac4 (patch) | |
tree | 1f8b43bc7cb92939271e1f5bec610710be69097f /Master/texmf-dist/tex/context/base/pack-rul.lua | |
parent | 6ee41e1f1822657f7f23231ec56c0272de3855e3 (diff) |
here is context 2010.05.24 13:05
git-svn-id: svn://tug.org/texlive/trunk@18445 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/pack-rul.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/pack-rul.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/context/base/pack-rul.lua b/Master/texmf-dist/tex/context/base/pack-rul.lua index 6bbd3c856b4..378167c979a 100644 --- a/Master/texmf-dist/tex/context/base/pack-rul.lua +++ b/Master/texmf-dist/tex/context/base/pack-rul.lua @@ -1,6 +1,6 @@ if not modules then modules = { } end modules ['pack-rul'] = { version = 1.001, - comment = "companion to pack-rul.tex", + comment = "companion to pack-rul.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" @@ -10,16 +10,16 @@ if not modules then modules = { } end modules ['pack-rul'] = { <p>An explanation is given in the history document <t>mk</t>.</p> --ldx]]-- -local texdimen, texcount, texbox, texwd = tex.dimen, tex.count, tex.box, tex.wd +local texdimen, texcount, texbox = tex.dimen, tex.count, tex.box local hpack, free, copy, traverse_id = node.hpack, node.free, node.copy_list, node.traverse_id function commands.doreshapeframedbox(n) - local noflines, lastlinelength = 0, 0 - if texwd[n] ~= 0 then - local list = texbox[n].list + local noflines, lastlinelength, box = 0, 0, texbox[n] + if box.width ~= 0 then + local list = box.list if list then local width, done = 0, false - for h in traverse_id('hlist',list) do + for h in traverse_id('hlist',list) do -- no dir etc needed local l = h.list if l then done = true @@ -37,14 +37,14 @@ function commands.doreshapeframedbox(n) local l = h.list if l then -- if h.width ~= width then -- else no display math handling (uses shift) - h.list = hpack(l,width,'exactly') + h.list = hpack(l,width,'exactly',h.dir) h.shift = 0 -- needed for display math h.width = width -- end end end end - texwd[n] = width + box.width = width end end end |