From ce772e76f34f60e8f9c3edfdbac4b06df47cfa7d Mon Sep 17 00:00:00 2001 From: Hironori Kitagawa Date: Sun, 20 Dec 2020 18:47:17 +0900 Subject: [PATCH] fix #41020 --- src/ltj-adjust.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ltj-adjust.lua b/src/ltj-adjust.lua index c7d145d..56effa3 100644 --- a/src/ltj-adjust.lua +++ b/src/ltj-adjust.lua @@ -287,7 +287,10 @@ local aw_step2, aw_step2_dummy do local node_hpack = node.direct.hpack local function repack(p) + local orig_of, orig_hfuzz, orig_hbad = tex.overfullrule, tex.hfuzz, tex.hbadness + tex.overfullrule=0; tex.hfuzz=1073741823; tex.hbadness=10000 local f = node_hpack(getlist(p), getfield(p, 'width'), 'exactly') + tex.overfullrule=orig_of; tex.hfuzz=orig_hfuzz; tex.hbadness=orig_hbad setfield(f, 'head', nil) setfield(p, 'glue_set', getfield(f, 'glue_set')) setfield(p, 'glue_order', getfield(f, 'glue_order')) -- 2.11.0