OSDN Git Service

luatexja-adjust: \moveleft/\moveright
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 22 Sep 2018 06:57:20 +0000 (15:57 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 22 Sep 2018 06:57:20 +0000 (15:57 +0900)
src/ltj-adjust.lua

index d9bd77a..382e760 100644 (file)
@@ -453,7 +453,7 @@ do
   function ltjl.p_profile(before, after, mirrored, bw)
     local t = {}
     do
-      local w_acc, d_before = 0, 0
+      local w_acc, d_before = getfield(before,'shift'), 0
       local x = getlist(before); local xn = node_next(x)
       while x do
         local w, d
@@ -469,7 +469,7 @@ do
       end
     end
     do
-      local w_acc, h_before = 0, 0
+      local w_acc, h_before = getfield(after,'shift'), 0
       local x = getlist(after); local xn = node_next(x)
       while x do
         local w, h, d